LLMS_REST_Posts_Controller::prepare_links( LLMS_Post_Model $object, WP_REST_Request $request )
Prepare links for the request.
Description Description
Parameters Parameters
- $object
-
(Required) Object data.
- $request
-
(Required) Request object.
Return Return
(array) Links for the given object.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.8 | Return links to those taxonomies which have an accessible rest route. |
1.0.0-beta.7 | self and collection links prepared in the parent class. Fix wp:featured_media link, we don't expose any embeddable field. |
1.0.0-beta.3 | Filter taxonomies by show_in_llms_rest property instead of public . |
1.0.0-beta.2 | Filter taxonomies by public property instead of show_in_rest . |
1.0.0-beta.14 | Added $request parameter. |
1.0.0-beta.1 | Introduced. |