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

Developer Resources

Browse: Home / Reference / wp-includes/rest-api/class-wp-rest-request.php

WP_REST_Request::is_json_content_type()

Method: Checks if the request has specified a JSON Content-Type.

Source: wp-includes/rest-api/class-wp-rest-request.php:334

Used by 2 functions | Uses 2 functions

WP_REST_Request::has_param()

Method: Checks if a parameter exists in the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:420

Used by 0 functions | Uses 1 function

WP_REST_Request::from_url()

Method: Retrieves a WP_REST_Request object from a full URL.

Source: wp-includes/rest-api/class-wp-rest-request.php:1027

Used by 1 function | Uses 6 functions

rest_request_from_url

Filter Hook: Filters the REST API request generated from a URL.

Source: wp-includes/rest-api/class-wp-rest-request.php:1061

Used by 1 function | Uses 0 functions

WP_REST_Request::offsetUnset()

Method:

Source: wp-includes/rest-api/class-wp-rest-request.php:1010

Used by 0 functions | Uses 1 function

WP_REST_Request::get_attributes()

Method: Retrieves the attributes for the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:773

Used by 2 functions | Uses 0 functions

WP_REST_Request::set_attributes()

Method: Sets the attributes for the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:784

Used by 1 function | Uses 0 functions

WP_REST_Request::sanitize_params()

Method: Sanitizes (where possible) the params on the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:798

Used by 0 functions | Uses 6 functions

WP_REST_Request::has_valid_params()

Method: Checks whether this request is valid according to its attributes.

Source: wp-includes/rest-api/class-wp-rest-request.php:868

Used by 0 functions | Uses 7 functions

WP_REST_Request::offsetExists()

Method:

Source: wp-includes/rest-api/class-wp-rest-request.php:964

Used by 0 functions | Uses 1 function

WP_REST_Request::offsetGet()

Method:

Source: wp-includes/rest-api/class-wp-rest-request.php:985

Used by 0 functions | Uses 1 function

WP_REST_Request::offsetSet()

Method:

Source: wp-includes/rest-api/class-wp-rest-request.php:998

Used by 0 functions | Uses 1 function

WP_REST_Request::parse_body_params()

Method: Parses the request body parameters.

Source: wp-includes/rest-api/class-wp-rest-request.php:716

Used by 1 function | Uses 2 functions

WP_REST_Request::get_route()

Method: Retrieves the route that matched the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:749

Used by 0 functions | Uses 0 functions

WP_REST_Request::set_route()

Method: Sets the route that matched the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:760

Used by 1 function | Uses 0 functions

WP_REST_Request::set_body()

Method: Sets body content.

Source: wp-includes/rest-api/class-wp-rest-request.php:636

Used by 0 functions | Uses 0 functions

WP_REST_Request::get_json_params()

Method: Retrieves the parameters from a JSON-formatted body.

Source: wp-includes/rest-api/class-wp-rest-request.php:652

Used by 0 functions | Uses 1 function

WP_REST_Request::parse_json_params()

Method: Parses the JSON parameters.

Source: wp-includes/rest-api/class-wp-rest-request.php:668

Used by 3 functions | Uses 4 functions

WP_REST_Request::get_body_params()

Method: Retrieves parameters from the body.

Source: wp-includes/rest-api/class-wp-rest-request.php:549

Used by 0 functions | Uses 0 functions

WP_REST_Request::set_body_params()

Method: Sets parameters from the body.

Source: wp-includes/rest-api/class-wp-rest-request.php:562

Used by 0 functions | Uses 0 functions

WP_REST_Request::get_file_params()

Method: Retrieves multipart file parameters from the body.

Source: wp-includes/rest-api/class-wp-rest-request.php:575

Used by 0 functions | Uses 0 functions

WP_REST_Request::set_file_params()

Method: Sets multipart file parameters from the body.

Source: wp-includes/rest-api/class-wp-rest-request.php:588

Used by 0 functions | Uses 0 functions

WP_REST_Request::get_default_params()

Method: Retrieves the default parameters.

Source: wp-includes/rest-api/class-wp-rest-request.php:601

Used by 0 functions | Uses 0 functions

WP_REST_Request::set_default_params()

Method: Sets default parameters.

Source: wp-includes/rest-api/class-wp-rest-request.php:614

Used by 0 functions | Uses 0 functions

WP_REST_Request::get_body()

Method: Retrieves the request body content.

Source: wp-includes/rest-api/class-wp-rest-request.php:625

Used by 3 functions | Uses 0 functions

WP_REST_Request::set_query_params()

Method: Sets parameters from the query string.

Source: wp-includes/rest-api/class-wp-rest-request.php:536

Used by 0 functions | Uses 0 functions

rest_request_parameter_order

Filter Hook: Filters the parameter priority order for a REST API request.

Source: wp-includes/rest-api/class-wp-rest-request.php:385

Used by 1 function | Uses 0 functions

WP_REST_Request::get_param()

Method: Retrieves a parameter from the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:396

Used by 2 functions | Uses 1 function

WP_REST_Request::set_param()

Method: Sets a parameter on the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:444

Used by 1 function | Uses 1 function

WP_REST_Request::get_params()

Method: Retrieves merged parameters from the request.

Source: wp-includes/rest-api/class-wp-rest-request.php:470

Used by 0 functions | Uses 1 function
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
  • Visit our YouTube channel
Code is Poetry