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');
