Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Correction to a AVIA file — The $paths variable is not being modified, it’s being replaced. The order of the plugins being loaded is essential on the array_merge($newpaths,$paths); to make it work. Possible to roll this out into Enfold ?

    // config-templatebuilder/config.php modificaiton

    function add_shortcode_folder($paths)
    {
            $newpaths = array(dirname(__FILE__) ."/avia-shortcodes/");
            return array_merge($newpaths,$paths);
    }
    
    add_filter('avia_load_shortcodes','add_shortcode_folder');
    • This reply was modified 10 years, 2 months ago by akfdev.
Viewing 1 post (of 1 total)