Skip to content

Instantly share code, notes, and snippets.

Created August 1, 2014 07:33
What would you like to do?
Sensei: Give editors access to all courses & lessons on the frontend
add_filter( 'sensei_all_access', 'sensei_editor_access' );
function sensei_editor_access( $access ) {
if( current_user_can( 'editor' ) ) {
$access = true;
return $access;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment