LLMS_Instructor::get_assistants()
Retrieve an array of user ids for assistant instructors attached to the instructor
Contents
Return Return
(int[])
Source Source
File: includes/models/model.llms.instructor.php
public function get_assistants() { global $wpdb; $results = $wpdb->get_col( $wpdb->prepare( "SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = 'llms_parent_instructors' AND meta_value LIKE %s;", '%i:' . $this->get_id() . ';%' ) ); // db call ok; no-cache ok. return $results; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.34.0 | Uses object ID instead of current user id. |
3.14.4 | Introduced. |