Last active
February 16, 2022 10:37
-
-
Save wpbean/6e04d0f3c70dd0ca73d1d3f4c84b233e to your computer and use it in GitHub Desktop.
Remove quiz from LearnPress
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( 'learn-press/profile-tabs', function($tabs){ | |
unset($tabs['quizzes']); | |
return $tabs; | |
}); | |
add_filter( 'lp_quiz_post_type_args', function($args){ | |
$args['show_in_menu'] = false; | |
return $args; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment