Created
February 12, 2021 14:45
-
-
Save zebrastribe/53fd2baff4e38165f9647b8290936fa5 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
add_action( 'init', 'ld_add_custom_shortcode' ); | |
function ld_add_custom_shortcode() { | |
if( ???? ){ | |
function show_courses(){ | |
$content = '<h3>Try these courses</h3>'; | |
$content .= do_shortcode( '[ld_course_list mycourses="not-enrolled"]'); | |
return $content; | |
} | |
} | |
add_shortcode( 'show_courses' , 'show_courses' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment