woocommerce_api_delete_order_refund

woocommerce_api_delete_order_refund

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_delete_order_refund') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 1752
    			}
    
    			wc_delete_shop_order_transients( $order_id );
    
    			do_action( 'woocommerce_api_delete_order_refund', $refund->ID, $order_id, $this );
    
    			return $this->delete( $refund->ID, 'refund', true );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    		}
    	}
    
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1797
    			}
    
    			wc_delete_shop_order_transients( $order_id );
    
    			do_action( 'woocommerce_api_delete_order_refund', $refund->ID, $order_id, $this );
    
    			return $this->delete( $refund->ID, 'refund', true );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    		}
    	}