LLMS_REST_Posts_Controller

LLMS_REST_Posts_Controller


Description Description


Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.9 Implemented a generic way to create and get an llms post object instance given a post_type. In get_objects_from_query() avoid performing an additional query, just return the already retrieved posts. Removed "llms_rest_{$this->post_type}_filters_removed_for_reponse" filter hooks, "llms_rest_{$this->post_type}_filters_removed_for_response" added.
1.0.0-beta.8 Return links to those taxonomies which have an accessible rest route. Initialize $prepared_item array before adding values to it.
1.0.0-beta.7 Added: check_read_object_permissions(), get_objects_from_query(), get_objects_query(), get_pagination_data_from_query(), prepare_collection_items_for_response() methods overrides. get_items() method removed, now abstracted in LLMS_REST_Controller. prepare_objects_query() renamed to prepare_collection_query_args(). On update_item, don't execute $object->set_bulk() when there's no data to update. Fix wp:featured_media link, we don't expose any embeddable field. Also self and collection links prepared in the parent class. Added "llms_rest_insert_{$this->post_type}" and "llms_rest_insert_{$this->post_type}" action hooks: fired after inserting/updateing an llms post into the database.
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 Update prepare_links() to accept a second parameter, WP_REST_Request.
1.0.0-beta.12 Moved parameters to query args mapping from $this->prepare_collection_params() to $this->map_params_to_query_args().
1.0.0-beta.11 Fixed "llms_rest_insert_{$this->post_type}" and "llms_rest_insert_{$this->post_type}" action hooks fourth param: must be false when updating.
1.0.0-beta.1 Introduced.


Top ↑

Methods Methods


Top ↑

User Contributed Notes User Contributed Notes

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