WooCommerce 3.0: can't find hook which corresponds to an admin created backend order

Viewed 2596

Along the lines of this post, I am trying to connect to my own custom payment gateway when an admin creates an order via the admin panel using my payment gateway.

I have added the following code:

    add_action( 'woocommerce_process_shop_order_meta', array( $this, 'process_offline_order' ) );
    add_action( 'woocommerce_admin_order_actions_end', array( $this, 'process_offline_order2' ) );
    add_action( 'woocommerce_save_post_shop_order', array( $this, 'process_offline_order3' ) );

I have tried to drop in xdebug breakp points into those respective methods, but none of them are getting hit.

1 Answers
Related