Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.