woocommerce_cheque_process_payment_order_status хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Gateway_Cheque::process_payment()
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' ) );

Где используется хук в WooCommerce

Использование не найдено.