LLMS_REST_Instructors_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/server/class-llms-rest-instructors-controller.php
protected function prepare_links( $object, $request ) { $links = parent::prepare_links( $object, $request ); $links['content'] = array( 'href' => sprintf( '%s/content', $links['self']['href'] ), ); return $links; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.14 | Added the $request parameter. |
1.0.0-beta.1 | Introduced. |