woocommerce_marketplace_suppress_promotions

woocommerce_marketplace_suppress_promotions

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.1.2

apply_filters('woocommerce_marketplace_suppress_promotions') is found 3 times:

  • /includes/admin/class-wc-admin-marketplace-promotions.php line 91
    		 * 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 115
    		 * 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 178
    		 * 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;