woocommerce_bacs_process_payment_order_status
Filter the order status for BACS payment.
Использование
add_filter( 'woocommerce_bacs_process_payment_order_status', 'wp_kama_woocommerce_bacs_process_payment_order_status_filter', 10, 2 );
/**
* Function for `woocommerce_bacs_process_payment_order_status` filter-hook.
*
* @param string $default_status The default order status.
* @param object $order The order object.
*
* @return string
*/
function wp_kama_woocommerce_bacs_process_payment_order_status_filter( $default_status, $order ){
// filter...
return $default_status;
}
- $default_status(строка)
- The default order status.
- $order(объект)
- The order object.
Список изменений
| С версии 3.4.0 | Введена. |
Где вызывается хук
woocommerce_bacs_process_payment_order_status
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 406
$process_payment_status = apply_filters( 'woocommerce_bacs_process_payment_order_status', OrderStatus::ON_HOLD, $order );