Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Alessandro Magnetti


    We use shortcoder pro in a multisite where we have defined on the site with the ID 1 some shortcodes containing SQL expressions. Then in function.php we have defined a function to execute that queries from any other site in this way:

    add_filter( 'do_shortcode_tag','pre_query_mssql_execute',10,3);
    function pre_query_mssql_execute($output, $tag, $attr)
        if (isset($attr['name']))
            phpAlert('Attr name: ' .$attr['name']);
        if (isset($attr['name']) && strpos($attr['name'], 'query_mssql') !== false)    {
    	$shortcodes = Shortcoder::get_shortcodes();
    	$shortcode_content = $shortcodes[strtolower($attr['name'])]["content"];	
            $output = query_mssql_execute($shortcode_content,$attr);
        return $output;

    It works but we lose some pretty feature like finding the shortcode around and the integration with WP Bakery page builder from sites with ID != 1.
    Have you any plan to implement a feature like “site from where grab the list of shortcode” ?

    Thank you.


    Hi Alessandro,

    Thanks for using Shortcoder PRO.

    As of now the plugin does not support multisite and there are no plans either.

    Since most users are single site owners, the plugin did not focus multisites.
    Also, there are users with thousands of shortcodes. Since the preference is to keep the plugin lightweight, fast and simple features which are very specific/heavy are not implemented.

    w.r.t your requirement, I can include wordpress hooks wherever needed to introduce customization. You can later use those hooks for multisite features like above. Please do let me know further on this.


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

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter