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_allow_marketplace_suggestions
woocommerce_allow_marketplace_suggestions
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 77
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
woocommerce/src/Internal/Admin/WCPayPromotion/Init.php 63
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 );