LLMS_Post_Instructors::set_instructors( array $instructors = array() )
Save instructor information
Parameters Parameters
- $instructors
-
(array) (Optional) Array of course instructor information.
Default value: array()
Source Source
File: includes/models/model.llms.post.instructors.php
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.25.0 | Unknown. |
3.13.0 | Introduced. |