Created
November 14, 2019 18:45
-
-
Save thomasplevy/6e3de7bfd42176b7ea3385e8bd20168a 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 // don't copy this line to the functions.php file! | |
/** | |
* Modify the course catalog description | |
*/ | |
function my_alter_llms_post_type_course_description( $course_data ) { | |
// remvoe the description. | |
unset( $course_data[ 'description' ] ); | |
// Or add a custom description. | |
$course_data[ 'description' ] = __( 'My course description', 'mytextdomain' ); | |
return $course_data; | |
} | |
add_filter( 'lifterlms_register_post_type_course', 'my_alter_llms_post_type_course_description' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment