woocommerce_allow_marketplace_suggestions

woocommerce_allow_marketplace_suggestions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_allow_marketplace_suggestions') is found 3 times:

  • /includes/admin/marketplace-suggestions/class-wc-marketplace-suggestions.php line 187
    			return false;
    		}
    
    		// User can disabled all suggestions via filter.
    		return apply_filters( 'woocommerce_allow_marketplace_suggestions', true );
    	}
    
    	/**
    	 * Pull suggestion data from options. This is retrieved from a remote endpoint.
    	 *
    	 * @return array of json API data
    
  • /src/Admin/API/OnboardingThemes.php line 219
    			 * User can disable all suggestions via filter.
    			 *
    			 * @since 8.3.0
    			 */
    			! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ||
    			get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) === 'no'
    		) {
    
    			/**
    			 * Filter the onboarding recommended themes response.
    			 *
    
  • /src/Internal/Admin/WcPayWelcomePage.php line 85
    		 * User can disable all suggestions via filter.
    		 *
    		 * @since 3.6.0
    		 */
    		if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
    			return false;
    		}
    
    		// An incentive must be available.
    		if ( empty( $this->get_incentive() ) ) {
    			return false;