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

User can disabled 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
-

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

WC_Marketplace_Suggestions::allow_suggestions()
woocommerce_allow_marketplace_suggestions
Init::can_show_promotion()
woocommerce_allow_marketplace_suggestions
WcPayWelcomePage::register_payments_welcome_page()
woocommerce_allow_marketplace_suggestions
woocommerce/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php 187
return apply_filters( 'woocommerce_allow_marketplace_suggestions', true );
woocommerce/src/Internal/Admin/WCPayPromotion/Init.php 74
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 100
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {

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

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