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
  • Get WordPress
Get WordPress

Developer Resources

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

WP_REST_Autosaves_Controller

Class: Core class used to access autosaves via the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:18

Used by 0 functions | Uses 1 function

WP_REST_Autosaves_Controller::prepare_item_for_response()

Method: Prepares the revision for the REST response.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:413

Used by 3 functions | Uses 4 functions

WP_REST_Autosaves_Controller::__construct()

Method: Constructor.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:59

Used by 1 function | Uses 3 functions

rest_prepare_autosave

Filter Hook: Filters a revision returned from the REST API.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:448

Used by 1 function | Uses 0 functions

WP_REST_Autosaves_Controller::register_routes()

Method: Registers the routes for autosaves.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:82

Used by 0 functions | Uses 3 functions

WP_REST_Autosaves_Controller::get_collection_params()

Method: Retrieves the query params for the autosaves collection.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:458

Used by 1 function | Uses 0 functions

WP_REST_Autosaves_Controller::get_parent()

Method: Get the parent post.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:145

Used by 2 functions | Uses 0 functions

WP_REST_Autosaves_Controller::get_items_permissions_check()

Method: Checks if a given request has access to get autosaves.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:157

Used by 0 functions | Uses 6 functions

WP_REST_Autosaves_Controller::create_item_permissions_check()

Method: Checks if a given request has access to create an autosave revision.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:185

Used by 0 functions | Uses 2 functions

WP_REST_Autosaves_Controller::create_item()

Method: Creates, updates or deletes an autosave revision.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:207

Used by 0 functions | Uses 9 functions

WP_REST_Autosaves_Controller::get_item()

Method: Get the autosave, if the ID is valid.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:261

Used by 0 functions | Uses 4 functions

WP_REST_Autosaves_Controller::get_items()

Method: Gets a collection of autosaves using wp_get_post_autosave.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:296

Used by 0 functions | Uses 5 functions

WP_REST_Autosaves_Controller::get_item_schema()

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

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:324

Used by 0 functions | Uses 1 function

WP_REST_Autosaves_Controller::create_post_autosave()

Method: Creates autosave for the specified post.

Source: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php:354

Used by 1 function | Uses 14 functions
  • 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