Created
November 5, 2013 19:44
-
-
Save intelliweb/7324942 to your computer and use it in GitHub Desktop.
Builder: Filter out default extensions, only use extensions provided by child theme
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
<?php | |
// Filter out Builder extensions except those provided by the custom child theme | |
add_filter( 'builder_get_extension_directories', 'intw_set_extensions_directory' ); | |
function intw_set_extensions_directory( $directories ) { | |
$directories = array( | |
get_template_directory() . '/extensions', | |
get_stylesheet_directory() . '/extensions', | |
); | |
$directories = array_unique( $directories ); | |
return $directories; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment