Updates a single post.
WP_REST_Posts_Controller::update_item_permissions_check
Checks if a given request has access to update a post.
rest_insert_{$this->post_type}
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
rest_after_insert_{$this->post_type}
This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
Advertisement
WP_REST_Posts_Controller::create_item
Creates a single post.
WP_REST_Posts_Controller::create_item_permissions_check
Checks if a given request has access to create a post.
WP_REST_Posts_Controller::get_item
Retrieves a single post.
WP_REST_Posts_Controller::can_access_password_content
Checks if the user can access password-protected content.
Advertisement
WP_REST_Posts_Controller::get_item_permissions_check
Checks if a given request has access to read a post.
WP_REST_Posts_Controller::get_post
Get the post, if the ID is valid.
rest_{$this->post_type}_query
Filters the query arguments for a request.
WP_REST_Posts_Controller::get_items
Retrieves a collection of posts.
Advertisement
WP_REST_Posts_Controller::get_items_permissions_check
Checks if a given request has access to read posts.
WP_REST_Posts_Controller::register_routes
Registers the routes for the objects of the controller.
WP_REST_Posts_Controller::__construct
Constructor.