WordPress at a glance
filter is not described

rest_prepare_theme filter-hook . WP 5.0.0

Filters theme data returned from the REST API.


add_filter( 'rest_prepare_theme', 'filter_function_name_3779', 10, 3 );
function filter_function_name_3779( $response, $theme, $request ){
	// filter...

	return $response;
The response object.
Theme object used to create response.
Request object.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php 139
return apply_filters( 'rest_prepare_theme', $response, $theme, $request );

Where the hook is used (in WP core)

Использование не найдено.