Dear Enfold,
For a project I am looking for a hook / filter that sends an array of all ALB shortcodes I found this hook (avf_shortcode_insert_button_backend). Are there more options?
I like to hear.
Hey FullPixel,
Thank you for the inquiry.
You might be able to use the aviaElementManager class to return the list of shortcodes or elements. Example:
add_action("init", function() {
if( ! class_exists( 'aviaElementManager' ) ) return;
$shortcodes = Avia_Builder()->element_manager()->get_checked_elements();
echo '<pre>'.var_export($shortcodes, true).'</pre>';
});
The element_manager, which is a public method of the AviaBuilder class, constructs the aviaElementManager class.
Best regards,
Ismael
Hello Ismael,
Thanks for sharing the code. This indeed works on a theme level. In my case I already want to know in a mu-plugin. Is this also possible. Not to get the shortcode data global just yet?