mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Add patch order data filter
This commit is contained in:
parent
3336468f64
commit
b4097f824c
1 changed files with 5 additions and 0 deletions
|
@ -518,6 +518,11 @@ class OrderEndpoint {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter can be used to modify the order patching request body data (the final prices, items).
|
||||
*/
|
||||
$patches_array = apply_filters( 'ppcp_patch_order_request_body_data', $patches_array );
|
||||
|
||||
$bearer = $this->bearer->bearer();
|
||||
$url = trailingslashit( $this->host ) . 'v2/checkout/orders/' . $order_to_update->id();
|
||||
$args = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue