added actions before and after payment

Issue #10276
This commit is contained in:
Dev49.net 2016-02-05 01:44:19 +01:00
parent a78edb2af2
commit dcbb17a99d
1 changed files with 4 additions and 0 deletions

View File

@ -273,6 +273,8 @@ class WC_Form_Handler {
$order_id = absint( $wp->query_vars['order-pay'] );
$order = wc_get_order( $order_id );
do_action( 'woocommerce_before_pay_action', $order, $order_key );
if ( $order->id == $order_id && $order->order_key == $order_key && $order->needs_payment() ) {
// Set customer location to order location
@ -339,6 +341,8 @@ class WC_Form_Handler {
}
}
do_action( 'woocommerce_after_pay_action', $order, $order_key );
}
}