LLMS_Instructor::get_assistants()

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


Description Description


Return Return

(array)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.14.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: