LLMS_Instructor::get_assistants()
Retrieve an array of user ids for assistant instructors attached to the current instructor
Description Description
Return Return
(array)
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:' . get_current_user_id() . ';%' ) ); return $results; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.14.4 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: