WordPress at Your Fingertips
filter is not described

woocommerce_rest_prepare_themes filter-hook . WC 1.0

Filter the list returned from the API.


add_filter( 'woocommerce_rest_prepare_themes', 'filter_function_name_2299', 10, 3 );
function filter_function_name_2299( $response, $item, $request ){
	// filter...

	return $response;
The response object.
The original item.
Request used to generate the response.

Where the hook is called

woocommerce/packages/woocommerce-admin/src/API/Themes.php 149
return apply_filters( 'woocommerce_rest_prepare_themes', $response, $item, $request );

Where in WP core the hook is used WooCommerce

woocommerce/packages/woocommerce-admin/src/Features/Onboarding.php 209
add_filter( 'woocommerce_rest_prepare_themes', array( $this, 'add_uploaded_theme_data' ) );