WP_REST_Global_Styles_Controller::get_item() – Returns the given global styles config.

You appear to be a bot. Output may be restricted

Description

Returns the given global styles config.

Usage

$WP_REST_Response|WP_Error = WP_REST_Global_Styles_Controller::get_item( $request );

Parameters

$request
( WP_REST_Request ) required – The request instance.

Returns

WP_REST_Response|WP_Error

Source

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

1 to 8 of 8
  public function get_item( $request ) {
    $post = $this->get_post( $request['id'] );
    if ( is_wp_error( $post ) ) {
      return $post;
    }

    return $this->prepare_item_for_response( $post, $request );
  }
 

 View on GitHub View on Trac