LLMS_Post_Instructors::set_instructors( array $instructors = array() )

Save instructor information


Parameters Parameters

$instructors

(array) (Optional) Array of course instructor information.

Default value: array()


Top ↑

Source Source

File: includes/models/model.llms.post.instructors.php

157
158
159
160
161
162
163
164
165
166
167
168
169
public function set_instructors( $instructors = array() ) {
 
    $instructors = $this->pre_set_instructors( $instructors );
 
    // Set the post_author to be the first author in the array.
    $this->post->set( 'author', $instructors[0]['id'] );
 
    // Save the instructors array.
    $this->post->set( 'instructors', $instructors );
 
    return $instructors;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.25.0 Unknown.
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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