Retrieve an array of user ids for assistant instructors attached to the instructor

Return Return


Top ↑

Source Source

File: includes/models/model.llms.instructor.php

	public function get_assistants() {

		global $wpdb;
		$results = $wpdb->get_col(
				"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;


Top ↑

Changelog Changelog

Version Description
3.34.0 Uses object ID instead of current user id.
3.14.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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