woocommerce_allow_marketplace_suggestions
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 | Введена. |
Где вызывается хук
woocommerce_allow_marketplace_suggestions
woocommerce_allow_marketplace_suggestions
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 82
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
woocommerce/includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php 191
return apply_filters( 'woocommerce_allow_marketplace_suggestions', true );