Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

WP_REST_Posts_Controller::check_password_required()

Method: Overrides the result of the post password check for REST requested posts.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:182

Used by 0 functions | Uses 2 functions

WP_REST_Posts_Controller::prepare_tax_query()

Method: Prepares the ‘tax_query’ for a collection of posts.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2989

Used by 1 function | Uses 4 functions

WP_REST_Posts_Controller::prepare_taxonomy_limit_schema()

Method: Prepares the collection schema for including and excluding items by terms.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:3068

Used by 1 function | Uses 3 functions

WP_REST_Posts_Controller::check_status()

Method: Checks whether the status is valid for the given post.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1408

Used by 0 functions | Uses 3 functions

rest_{$this->post_type}_item_schema

Filter Hook: Filters the post’s schema.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2608

Used by 1 function | Uses 0 functions

rest_after_insert_{$this->post_type}

Action Hook: Fires after a single post is completely created or updated via the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:773

Used by 4 functions | Uses 0 functions

WP_REST_Posts_Controller::get_available_actions()

Method: Gets the link relations available for the post and current user.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2150

Used by 1 function | Uses 6 functions

WP_REST_Posts_Controller::get_schema_links()

Method: Retrieves Link Description Objects that should be added to the Schema for the posts collection.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2636

Used by 2 functions | Uses 5 functions

WP_REST_Posts_Controller::check_template()

Method: Checks whether the template is valid for the given post.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1504

Used by 0 functions | Uses 6 functions

WP_REST_Posts_Controller::get_post()

Method: Gets the post, if the ID is valid.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:452

Used by 8 functions | Uses 3 functions

WP_REST_Posts_Controller::protected_title_format()

Method: Overwrites the default protected title format.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2021

Used by 0 functions | Uses 0 functions

WP_REST_Posts_Controller::prepare_links()

Method: Prepares links for the request.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2033

Used by 2 functions | Uses 11 functions

WP_REST_Posts_Controller::get_item_schema()

Method: Retrieves the post’s schema, conforming to JSON Schema.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2205

Used by 6 functions | Uses 11 functions

WP_REST_Posts_Controller::get_collection_params()

Method: Retrieves the query params for the posts collection.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2764

Used by 4 functions | Uses 7 functions

rest_{$this->post_type}_collection_params

Filter Hook: Filters collection parameters for the posts controller.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2935

Used by 1 function | Uses 0 functions

WP_REST_Posts_Controller::sanitize_post_statuses()

Method: Sanitizes and validates the list of post statuses, including whether the user can query private statuses.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2949

Used by 0 functions | Uses 8 functions

WP_REST_Posts_Controller::check_delete_permission()

Method: Checks if a post can be deleted.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1724

Used by 2 functions | Uses 3 functions

WP_REST_Posts_Controller::prepare_item_for_response()

Method: Prepares a single post output for response.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1744

Used by 6 functions | Uses 27 functions

rest_prepare_{$this->post_type}

Filter Hook: Filters the post data for a REST API response.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:2007

Used by 1 function | Uses 0 functions

WP_REST_Posts_Controller::check_is_post_type_allowed()

Method: Checks if a given post type can be viewed or managed.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1623

Used by 4 functions | Uses 1 function

WP_REST_Posts_Controller::check_read_permission()

Method: Checks if a post can be read.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1645

Used by 4 functions | Uses 6 functions

WP_REST_Posts_Controller::check_update_permission()

Method: Checks if a post can be edited.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1688

Used by 2 functions | Uses 3 functions

WP_REST_Posts_Controller::check_create_permission()

Method: Checks if a post can be created.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1706

Used by 0 functions | Uses 3 functions

rest_pre_insert_{$this->post_type}

Filter Hook: Filters a post before it is inserted via the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1392

Used by 1 function | Uses 0 functions

WP_REST_Posts_Controller::handle_status_param()

Method: Determines validity and normalizes the given status parameter.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1431

Used by 1 function | Uses 5 functions

WP_REST_Posts_Controller::handle_featured_media()

Method: Determines the featured media based on a request param.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1475

Used by 2 functions | Uses 4 functions

WP_REST_Posts_Controller::handle_template()

Method: Sets the template for a post.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1547

Used by 2 functions | Uses 4 functions

WP_REST_Posts_Controller::handle_terms()

Method: Updates the post’s terms from a REST request.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1565

Used by 2 functions | Uses 4 functions

WP_REST_Posts_Controller::check_assign_terms_permission()

Method: Checks whether current user can assign all terms sent with the current request.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1591

Used by 2 functions | Uses 4 functions

WP_REST_Posts_Controller::prepare_item_for_database()

Method: Prepares a single post for create or update.

Source: wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1180

Used by 3 functions | Uses 15 functions
1 2 Next
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry