woocommerce_cheque_process_payment_order_status
Использование
add_filter( 'woocommerce_cheque_process_payment_order_status', 'wp_kama_woocommerce_cheque_process_payment_order_status_filter', 10, 2 ); /** * Function for `woocommerce_cheque_process_payment_order_status` filter-hook. * * @param $string * @param $order * * @return */ function wp_kama_woocommerce_cheque_process_payment_order_status_filter( $string, $order ){ // filter... return $string; }
- $string
- -
- $order
- -
Где вызывается хук
woocommerce_cheque_process_payment_order_status
woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php 136
$order->update_status( apply_filters( 'woocommerce_cheque_process_payment_order_status', 'on-hold', $order ), _x( 'Awaiting check payment', 'Check payment method', 'woocommerce' ) );