LD_REST_Assignments_Controller_V2
Class LearnDash REST API V2 Assignment (sfwd-assignment) Post Controller.
Description #
Source #
File: includes/rest-api/v2/class-ld-rest-assignments-controller.php
Changelog #
Version | Description |
---|---|
3.3.0 | Introduced. |
Methods #
- __construct — Public constructor for class
- check_is_post_type_allowed — Checks if a given post type can be viewed or managed.
- get_assignment_post_data — Initialize the Assignment Post data elements used by many class functions.
- get_item_permissions_check — Check user permission to get/access single item.
- get_items_permissions_check — Check user permission to get/access Lessons.
- get_public_item_schema — Gets public schema.
- get_rest_settings_field_value — Get REST Setting Field value.
- register_fields — Prepare the LearnDash Post Type Settings.
- register_fields_metabox — Register the Settings Fields from the Post Metaboxes.
- rest_collection_params_filter — Add our collection parameters.
- rest_prepare_response_filter — Override the REST response links. This is needed when Course Shared Steps is enabled.
- rest_query_filter — Filter Assignments query args.
- update_item_permissions_check — Checks if a given request has access to update a post.
- update_rest_settings_field_value — Update REST Settings Field value.