Filter hook 'rest_prepare_theme'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php at line 369

Description

Filters theme data returned from the REST API.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php 369

Parameters

Type Name Description
WP_REST_Response $response The response object.
WP_Theme $theme Theme object used to create response.
WP_REST_Request $request Request object.

PHP Doc

/**
		 * Filters theme data returned from the REST API.
		 *
		 * @since 5.0.0
		 *
		 * @param WP_REST_Response $response The response object.
		 * @param WP_Theme         $theme    Theme object used to create response.
		 * @param WP_REST_Request  $request  Request object.
		 */