Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1273679

    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.

    #1274254

    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

    #1276338

    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?

    • This reply was modified 3 years, 9 months ago by FullPixel.
    #1277039

    Hi,

    We have not tested this on a multisite installation, but it should work fine as long as the theme is active. Do you have a multisite installation to test this with?

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.