Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active August 31, 2020 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/fdf602eaa508762123009f407f5c5621 to your computer and use it in GitHub Desktop.
Save thomasplevy/fdf602eaa508762123009f407f5c5621 to your computer and use it in GitHub Desktop.
<?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 );
@ajeetkumarrauniyar
Copy link

where to add this snippet in theme file

@thomasplevy
Copy link
Author

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