Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Add filter to add or replace Enfold ALB shortcodes with new folder contents
- *
- * Note that the shortcodes must be in the same format as those in
- * enfold/config-templatebuilder/avia-shortcodes
- *
- * @link http://www.kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
- */
- add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
- function avia_include_shortcode_template($paths)
- {
- $template_url = get_stylesheet_directory();
- array_unshift($paths, $template_url.'/shortcodes/');
- return $paths;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement