woocommerce_marketplace_suppress_promotions, false

woocommerce_marketplace_suppress_promotions, false

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_marketplace_suppress_promotions, false') is found 3 times:

  • /includes/admin/class-wc-admin-marketplace-promotions.php line 143
    		 * Filter to suppress the requests for and showing of marketplace promotions.
    		 *
    		 * @since 8.8
    		 */
    		if ( apply_filters( 'woocommerce_marketplace_suppress_promotions', false ) ) {
    			return array();
    		}
    
    		$promotions = get_transient( self::TRANSIENT_NAME );
    		if ( ! $promotions ) {
    			return array();
    
  • /includes/admin/class-wc-admin-marketplace-promotions.php line 487
    		 * Filter to suppress the requests for and showing of marketplace promotions.
    		 *
    		 * @since 8.8
    		 */
    		if ( apply_filters( 'woocommerce_marketplace_suppress_promotions', false ) ) {
    			return array();
    		}
    
    		// Fetch promotions from the API.
    		$fetch_options  = array(
    			'auth'    => true,
    
  • /includes/admin/class-wc-admin-marketplace-promotions.php line 551
    		 * Filter to suppress the requests for and showing of marketplace promotions.
    		 *
    		 * @since 8.8
    		 */
    		if ( apply_filters( 'woocommerce_marketplace_suppress_promotions', false ) ) {
    			return;
    		}
    
    		$promotions = get_transient( self::TRANSIENT_NAME );
    		if ( ! $promotions ) {
    			return;