__experimental_woocommerce_rest_get_recommended_themes filter-hookWC 8.3.0

Filter the onboarding recommended themes response.

Usage

add_filter( '__experimental_woocommerce_rest_get_recommended_themes', 'wp_kama__experimental_woocommerce_rest_get_recommended_themes_filter', 10, 3 );

/**
 * Function for `__experimental_woocommerce_rest_get_recommended_themes` filter-hook.
 * 
 * @param array  $response        The recommended themes response.
 * @param array  $filtered_themes The filtered themes.
 * @param string $industry        The industry to filter by (if provided).
 *
 * @return array
 */
function wp_kama__experimental_woocommerce_rest_get_recommended_themes_filter( $response, $filtered_themes, $industry ){

	// filter...
	return $response;
}
$response(array)
The recommended themes response.
$filtered_themes(array)
The filtered themes.
$industry(string)
The industry to filter by (if provided).

Changelog

Since 8.3.0 Introduced.

Where the hook is called

OnboardingThemes::get_recommended_themes()
__experimental_woocommerce_rest_get_recommended_themes
woocommerce/src/Admin/API/OnboardingThemes.php 237-249
return apply_filters(
	'__experimental_woocommerce_rest_get_recommended_themes',
	array(
		'themes' => array(),
		'_links' => array(
			'browse_all' => array(
				'href' => home_url( '/wp-admin/themes.php' ),
			),
		),
	),
	$industry,
	$currency
);
woocommerce/src/Admin/API/OnboardingThemes.php 499-504
$filtered_response = apply_filters(
	'__experimental_woocommerce_rest_get_recommended_themes',
	$response,
	$industry,
	$currency
);

Where the hook is used in WooCommerce

Usage not found.