woocommerce_allow_marketplace_suggestions

woocommerce_allow_marketplace_suggestions

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_allow_marketplace_suggestions') is found 4 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 221
    			 * 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/WCPayPromotion/Init.php line 73
    		}
    		if ( get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) === 'no' ) {
    			return false;
    		}
    		if ( ! apply_filters( 'woocommerce_allow_marketplace_suggestions', true ) ) {
    			return false;
    		}
    
    		$wc_pay_spec = self::get_wc_pay_promotion_spec();
    		if ( ! $wc_pay_spec ) {
    			return false;
    
  • /src/Internal/Admin/WcPayWelcomePage.php line 75
    		 * 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;