Skip to content

Instantly share code, notes, and snippets.

@jom
Created April 28, 2020 16:12
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 jom/6d97166cf97b5320f446342c9ebf0370 to your computer and use it in GitHub Desktop.
Save jom/6d97166cf97b5320f446342c9ebf0370 to your computer and use it in GitHub Desktop.
Disable guest enrollment check
<?php
add_filter(
'sensei_is_enrolled',
function( $is_enrolled, $user_id ) {
if ( empty( $user_id ) ) {
return false;
}
return $is_enrolled;
},
10,
2
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment