llms_template_instructors()
Get single post instructors template
Description Description
Used by courses and membership.
Return Return
(void)
Source Source
File: includes/functions/llms-functions-templates-shared.php
function llms_template_instructors() {
$llms_post = llms_get_post( get_the_ID() );
if ( ! $llms_post || ! $llms_post instanceof LLMS_Post_Model || ! $llms_post instanceof LLMS_Interface_Post_Instructors ) {
return;
}
$instructors = $llms_post->get_instructors( true );
if ( ! $instructors ) {
return;
}
$count = count( $instructors );
llms_get_template( 'shared/instructors.php', compact( 'llms_post', 'instructors', 'count' ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.11.0 | Introduced. |