LLMS_REST_Controller::add_meta_fields_schema( array $schema )

Add custom fields registered via register_meta().


Parameters Parameters

$schema

(array) (Required) The resource item schema.


Top ↑

Return Return

(array)


Top ↑

Source Source

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

	protected function add_meta_fields_schema( $schema ) {

		if ( ! empty( $this->meta ) ) {
			$schema['properties']['meta']               = $this->meta->get_field_schema();
			$schema['properties']['meta']['properties'] = $this->exclude_disallowed_meta_fields(
				$schema['properties']['meta']['properties'],
				$schema
			);
		}

		return $schema;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.27 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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