woocommerce_allow_marketplace_suggestions хук-фильтрWC 3.6.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
-

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

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

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

WcPayWelcomePage::must_be_visible()
woocommerce_allow_marketplace_suggestions
Init::can_show_promotion()
woocommerce_allow_marketplace_suggestions
OnboardingThemes::get_recommended_themes()
woocommerce_allow_marketplace_suggestions
WC_Marketplace_Suggestions::allow_suggestions()
woocommerce_allow_marketplace_suggestions
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 75
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
woocommerce/src/Internal/Admin/WCPayPromotion/Init.php 73
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
woocommerce/src/Admin/API/OnboardingThemes.php 221
! 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

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