WP_REST_Global_Styles_Controller::get_item( WP_REST_Request $request ): WP_REST_Response|WP_Error

Returns the given global styles config.


Parameters

$request WP_REST_Request Required
The request instance.

Top ↑

Return

WP_REST_Response|WP_Error


Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php. View all references

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 );
}


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.