Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test_callback($order_id, $old_status, $new_status) {
- if( $new_status == "processing" ) {
- var_dump($woocommerce->get("/orders/$order_id")); //неправильный путь
- }
- }
- add_action( 'woocommerce_order_status_changed', 'test_callback', 10, 3);
Add Comment
Please, Sign In to add comment