Skip to content

Instantly share code, notes, and snippets.

@wpbean
Last active February 16, 2022 10:37
Show Gist options
  • Save wpbean/6e04d0f3c70dd0ca73d1d3f4c84b233e to your computer and use it in GitHub Desktop.
Save wpbean/6e04d0f3c70dd0ca73d1d3f4c84b233e to your computer and use it in GitHub Desktop.
Remove quiz from LearnPress
<?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