woocommerce_suggest_jetpack filter-hookWC 7.8

Allows removing Jetpack suggestions from WooCommerce Admin when false.

In this instance it is removed from the list of extensions suggested in the Onboarding Profiler. This list is first retrieved from the WooCommerce.com API, then if a plugin with the 'jetpack' slug is found, it is removed.

Usage

add_filter( 'woocommerce_suggest_jetpack', 'wp_kama_woocommerce_suggest_jetpack_filter' );

/**
 * Function for `woocommerce_suggest_jetpack` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_suggest_jetpack_filter( $true ){

	// filter...
	return $true;
}
$true
-

Changelog

Since 7.8 Introduced.

Where the hook is called

OnboardingFreeExtensions::get_available_extensions()
woocommerce_suggest_jetpack
woocommerce/src/Admin/API/OnboardingFreeExtensions.php 89
if ( false === apply_filters( 'woocommerce_suggest_jetpack', true ) ) {

Where the hook is used in WooCommerce

Usage not found.