woocommerce_allow_marketplace_suggestions хук-фильтрWC 8.3.0

Filter allow marketplace suggestions.

User can disable all suggestions via filter.

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

add_filter( 'woocommerce_allow_marketplace_suggestions', 'wp_kama_woocommerce_allow_marketplace_suggestions_filter' );

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

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

Список изменений

С версии 8.3.0 Введена.

Где вызывается хук

OnboardingThemes::get_recommended_themes()
woocommerce_allow_marketplace_suggestions
WC_Marketplace_Suggestions::allow_suggestions()
woocommerce_allow_marketplace_suggestions
WcPayWelcomePage::has_incentive()
woocommerce_allow_marketplace_suggestions
woocommerce/src/Admin/API/OnboardingThemes.php 219
! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ||
woocommerce/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php 187
return apply_filters( 'woocommerce_allow_marketplace_suggestions', true );
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 82
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {

Где используется хук в WooCommerce

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