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

Mark as on-hold (we're awaiting the 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 
 * @param  $order  
 *
 * @return 
 */
function wp_kama_woocommerce_bacs_process_payment_order_status_filter( $string, $order ){

	// filter...
	return $string;
}
$string
-
$order
-

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

WC_Gateway_BACS::process_payment()
woocommerce_bacs_process_payment_order_status
woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php 365
$order->update_status( apply_filters( 'woocommerce_bacs_process_payment_order_status', 'on-hold', $order ), __( 'Awaiting BACS payment', 'woocommerce' ) );

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

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