LD_REST_Posts_Controller_V2::rest_pre_insert_filter()
Method: Filters a post before it is inserted via the REST API.
@package: LearnDash / REST / V2
Source Files: includes/rest-api/v2/class-ld-rest-posts-controller.php
Method: Filters a post before it is inserted via the REST API.
Method: Check if REST Request is for this version/route.
Method: Updates a single post.
Method: Swap Registered fields from V1 to V2.
Method: Reset Registered fields back to V1.
Method: Fires after a single post is completely created or updated via the REST API.
Method: Retrieves all of the registered additional fields for a given object-type.
Filter Hook: After we save the meta data we re-initialize the metabox with the new values. This will reload metabox->setting_option_values
Method: Initialize the parent Course, Lesson, Topic posts from the request instance.
Method: Get the REST URL setting.
Method: For LearnDash post type we override the default order/orderby to ASC/title instead of the WP default DESC/date.
Method: Intercept the Request and ensure our standard Course parameters are set.
Method: Override the REST response links. This is needed when Course Shared Steps is enabled.
Method: Register Settings fields to REST.
Method: Check if we are allowing the post type to be publicly viewed without restrictions to course_id.
Class: Class LearnDash REST API V2 Post Controller.
Method: Protected constructor for class
Method: Registers the routes for the objects of the controller.
Method: Gets schema for post type.
Method: Retrieves a single post.