woocommerce_suggest_jetpack
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.
Использование
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
- -
Список изменений
С версии 7.8 | Введена. |
Где вызывается хук
woocommerce_suggest_jetpack
woocommerce/src/Admin/API/OnboardingFreeExtensions.php 89
if ( false === apply_filters( 'woocommerce_suggest_jetpack', true ) ) {