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 );
@asha-ekumeed

This comment has been minimized.

Copy link

@asha-ekumeed asha-ekumeed commented Aug 29, 2020

where to add this snippet in theme file

@thomasplevy

This comment has been minimized.

Copy link
Owner Author

@thomasplevy thomasplevy commented Aug 31, 2020

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
You can’t perform that action at this time.