woocommerce_allow_marketplace_suggestions хук-фильтр . WC 1.0
User can disabled all suggestions via filter.
Использование
add_filter( 'woocommerce_allow_marketplace_suggestions', 'filter_function_name_1083' ); function filter_function_name_1083( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
woocommerce_allow_marketplace_suggestions
woocommerce/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php 187
return apply_filters( 'woocommerce_allow_marketplace_suggestions', true );