woocommerce_create_order хук-фильтр . WC 1.0
Give plugins the opportunity to create an order themselves.
Использование
add_filter( 'woocommerce_create_order', 'filter_function_name_6822', 10, 2 ); function filter_function_name_6822( $null, $that ){ // filter... return $null; }
- $null
- -
- $that
- -
Где вызывается хук
woocommerce_create_order
woocommerce/includes/class-wc-checkout.php 321
$order_id = apply_filters( 'woocommerce_create_order', null, $this );