Created
August 1, 2014 07:33
-
-
Save hlashbrooke/ecd542926eb1fc245bef to your computer and use it in GitHub Desktop.
Sensei: Give editors access to all courses & lessons on the frontend
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_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