WC_REST_Posts_Controller
Description Description
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php
Methods Methods
- add_post_meta_fields — Add post meta fields.
- batch_items_permissions_check — Check if a given request has access batch create, update and delete items.
- create_item — Create a single item.
- create_item_permissions_check — Check if a given request has access to create an item.
- delete_item — Delete a single item.
- delete_item_permissions_check — Check if a given request has access to delete an item.
- delete_post — Delete post.
- get_allowed_query_vars — Get all the WP Query vars that are allowed for the API request.
- get_collection_params — Get the query params for collections of attachments.
- get_item — Get a single item.
- get_item_permissions_check — Check if a given request has access to read an item.
- get_items — Get a collection of posts.
- get_items_permissions_check — Check if a given request has access to read items.
- prepare_items_query — Determine the allowed query_vars for a get_items() response and prepare for WP_Query.
- prepare_links — Prepare links for the request.
- update_item — Update a single post.
- update_item_permissions_check — Check if a given request has access to update an item.
- update_post_meta_fields — Update post meta fields.