Created
October 12, 2017 22:44
-
-
Save thomasplevy/5a032dddc4bba06dc03f7a1ec68c4424 to your computer and use it in GitHub Desktop.
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 // 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