llms_template_instructors()

Get single post instructors template


Description Description

Used by courses and membership.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/functions/llms-functions-templates-shared.php

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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' ) );
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
4.11.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.