Last active
August 31, 2020 17:34
-
-
Save thomasplevy/fdf602eaa508762123009f407f5c5621 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Add an arbitrary plugin directory to the list | |
* @param array $dirs Array of paths to directories to load LifterLMS templates from | |
* @return array | |
*/ | |
function my_llms_theme_override_dirs( $dirs ) { | |
array_unshift( $dirs, plugin_dir_path( __FILE__ ) . '/lifterlms' ); | |
return $dirs; | |
} | |
add_filter( 'lifterlms_theme_override_directories', 'my_llms_theme_override_dirs', 10, 1 ); |
Add it to your functions.php file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where to add this snippet in theme file