Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created October 12, 2017 22:44
Show Gist options
  • Save thomasplevy/5a032dddc4bba06dc03f7a1ec68c4424 to your computer and use it in GitHub Desktop.
Save thomasplevy/5a032dddc4bba06dc03f7a1ec68c4424 to your computer and use it in GitHub Desktop.
<?php // dont copy this to your functions.php
/**
* Add "author" support to LifterLMS Course post type
*/
function my_custom_course_support( $args ) {
$args['supports'][] = 'author';
return $args;
}
add_filter( 'lifterlms_register_post_type_course', 'my_custom_course_support' );
/**
* Remove the LifterLMS instructors metabox
*/
function my_custom_instructor_removal() {
remove_meta_box( 'llms-instructors', 'course', 'normal' );
}
add_action( 'add_meta_boxes', 'my_custom_instructor_removal', 9999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment