LLMS_REST_Controller::prepare_links( obj $object, WP_REST_Request $request )
Prepare links for the request.
Parameters Parameters
- $object
-
(obj) (Required) Item object.
- $request
-
(WP_REST_Request) (Required) Request object.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-controller.php
} /** * Add custom fields registered via `register_meta()`. * * @since 1.0.0-beta.27 * * @param array $schema The resource item schema. * @return array */ 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'],
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.14 | Added $request parameter. |
1.0.0-beta.1 | Introduced. |