woocommerce_allow_marketplace_suggestions
Filter allow marketplace suggestions.
User can disable all suggestions via filter.
Usage
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
- -
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
woocommerce_allow_marketplace_suggestions
woocommerce_allow_marketplace_suggestions
woocommerce_allow_marketplace_suggestions
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 280
if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
woocommerce/src/Admin/API/OnboardingThemes.php 219
! 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 );