Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created November 14, 2019 18:45
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/6e3de7bfd42176b7ea3385e8bd20168a to your computer and use it in GitHub Desktop.
Save thomasplevy/6e3de7bfd42176b7ea3385e8bd20168a to your computer and use it in GitHub Desktop.
<?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