woocommerce_api_delete_coupon

woocommerce_api_delete_coupon

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_api_delete_coupon') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-coupons.php line 460
    		if ( is_wp_error( $id ) ) {
    			return $id;
    		}
    
    		do_action( 'woocommerce_api_delete_coupon', $id, $this );
    
    		return $this->delete( $id, 'shop_coupon', ( 'true' === $force ) );
    	}
    
    	/**
    	 * expiry_date format
    
  • /includes/legacy/api/v3/class-wc-api-coupons.php line 460
    		if ( is_wp_error( $id ) ) {
    			return $id;
    		}
    
    		do_action( 'woocommerce_api_delete_coupon', $id, $this );
    
    		return $this->delete( $id, 'shop_coupon', ( 'true' === $force ) );
    	}
    
    	/**
    	 * expiry_date format