Last active
February 28, 2024 10:50
-
-
Save yanknudtskov/3aec5895d3d06536a9e88a660cb26bd6 to your computer and use it in GitHub Desktop.
Avia Shortcodes Override. Place override shortcodes in /avia-override-shortcodes/ #enfold #shortcodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Avia Shortcode Overrides | |
*/ | |
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.'/avia-override-shortcodes/'); | |
return $paths; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment