woocommerce_ordered_again хук-событие . WC 1.0
Использование
add_action( 'woocommerce_ordered_again', 'action_function_name_3109', 10, 3 ); function action_function_name_3109( $order_id, $order_items, &$cart ){ // action... }
- $order_id
- -
- $order_items
- -
- &$cart
- -
Где вызывается хук
woocommerce_ordered_again
woocommerce/includes/class-wc-cart-session.php 403
do_action_ref_array( 'woocommerce_ordered_again', array( $order->get_id(), $order_items, &$cart ) );