Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active June 26, 2017 19:16
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 thomasplevy/843225f158235d21a51b7f9317bd4f06 to your computer and use it in GitHub Desktop.
Save thomasplevy/843225f158235d21a51b7f9317bd4f06 to your computer and use it in GitHub Desktop.
<?php // don't copy this line!
/**
* Update the admin menu positon of LifterLMS courses to prevent conflicts
* @param array $data course post type registration data
* @return array
*/
function my_llms_course_positioning( $data ) {
$data['menu_position'] = 53;
return $data;
}
add_filter( 'lifterlms_register_post_type_course', 'my_llms_course_positioning' );
add_filter( 'lifterlms_register_post_type_membership', 'my_llms_course_positioning' );
add_filter( 'lifterlms_register_post_type_llms_engagement', 'my_llms_course_positioning' );
add_filter( 'lifterlms_register_post_type_order', 'my_llms_course_positioning' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment