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

In this article

Retrieves one global styles revision from the collection.

Parameters

$requestWP_REST_Requestrequired
Full details about the request.

Return

WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.

Source

		$next_link = add_query_arg( 'page', $next_page, $base );

		$response->link_header( 'next', $next_link );
	}

	return $response;
}

/**
 * Prepares the revision for the REST response.
 *
 * @since 6.3.0
 * @since 6.6.0 Added resolved URI links to the response.
 *

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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