LD_REST_Posts_Controller_V2
Class LearnDash REST API V2 Post Controller.
Description #
Source #
File: includes/rest-api/v2/class-ld-rest-posts-controller.php
Changelog #
Version | Description |
---|---|
3.3.0 | Introduced. |
Methods #
- __construct — Protected constructor for class
- get_additional_fields — Retrieves all of the registered additional fields for a given object-type.
- get_item — Retrieves a single post.
- get_items — Retrieves a collection of posts.
- get_public_item_schema — Gets schema for post type.
- get_rest_base — Get the REST URL setting.
- get_rest_settings_field_value — Get REST Setting Field value.
- is_rest_request — Check if REST Request is for this version/route.
- register_fields — Stub function for base class to register fields.
- register_fields_metabox — Stub function for base class to register metabox fields.
- register_rest_fields — Register Settings fields to REST.
- register_routes — Registers the routes for the objects of the controller.
- reset_rest_registered_fields — Reset Registered fields back to V1.
- rest_after_insert_action — Fires after a single post is completely created or updated via the REST API.
- rest_collection_params_filter — For LearnDash post type we override the default order/orderby to ASC/title instead of the WP default DESC/date.
- rest_init_request_posts — Initialize the parent Course, Lesson, Topic posts from the request instance.
- rest_post_type_has_archive — Checks if we are allowing the post type to be viewed without restrictions for an admin user.
- rest_pre_insert_filter — Filters a post before it is inserted via the REST API.
- rest_prepare_response_filter — Override the REST response links. This is needed when Course Shared Steps is enabled.
- rest_query_filter — Intercept the Request and ensure our standard Course parameters are set.
- swap_rest_registered_fields — Swap Registered fields from V1 to V2.
- update_item — Updates a single post.
- update_rest_settings_field_value — Update REST Settings Field value.