Get the item schema.

Return Return


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-students-controller.php

	public function get_item_schema() {

		$schema                                   = parent::get_item_schema();
		$schema['properties']['roles']['default'] = array( 'student' );

		 * Filter item schema for the studend controller.
		 * @since 1.0.0-beta.12
		 * @param array $schema Item schema data.
		return apply_filters( 'llms_rest_student_item_schema', $schema );


Top ↑

Changelog Changelog

Version Description
1.0.0-beta.12 Added item schema filter.
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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