Last active
November 26, 2019 23:31
-
-
Save thomasplevy/d6df9d000bb36ceb4158f7bab767c321 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 your functions.php file | |
// this will add custom content BEFORE the dynamic catalog content | |
add_action( 'lifterlms_archive_description', 'my_llms_catalog_description' ); | |
// this will add custom contet AFTER the dynamic catalog content | |
add_action( 'lifterlms_after_main_content', 'my_llms_catalog_description' ); | |
function my_llms_catalog_description() { | |
// for course catalog | |
if ( is_post_type_archive( 'course' ) ) { | |
// replace the content here with your custom html / content | |
echo '<p>This displays on the course catalog! Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>'; | |
} | |
// for membership catalog | |
if ( is_post_type_archive( 'llms_membership' ) ) { | |
// replace the content here with your custom html / content | |
echo '<p>This displays on the membership catalog! Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment