WP_REST_Autosaves_Controller::get_collection_params() – Retrieves the query params for the autosaves collection.

You appear to be a bot. Output may be restricted

Description

Retrieves the query params for the autosaves collection.

Usage

$array = WP_REST_Autosaves_Controller::get_collection_params();

Parameters

Returns

array Collection parameters.

Source

File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
Lines:

1 to 5 of 5
  public function get_collection_params() {
    return array(
      'context' => $this->get_context_param( array( 'default' => 'view' ) ),
    );
  }
 

 View on GitHub View on Trac