I’m having an issue with an action hook, because it isn’t firing. The action is “woocommerce_order_status_cancelled”. With the WooCommerce 1.x version worked. But now with the WooCommerce 2.x does not. I already check if the event continues to be used, and it is. The hook is called “woocommerce_order_status_cancelled” and is used on the file “classes/class-wc-order.php” in the “update_status” method. The part itself I think:
// Status was changed do_action( 'woocommerce_order_status_' . $new_status->slug, $this->id ); do_action( 'woocommerce_order_status_' . $this->status . '_to_' . $new_status->slug, $this->id ); do_action( 'woocommerce_order_status_changed', $this->id, $this->status, $new_status->slug );
But this don’t appear to be working. I even logged with a file, because is for an IPN system. Everything runs, except the hook “woocommerce_order_status_cancelled”. My add_action code (I’m ussing a class):
add_action('woocommerce_order_status_cancelled', array($this, 'status_cancelled'));
So… can anyone give me a clue on this? I’m running on a WordPress 3.5.1 fresh installation.
- The topic ‘woocommerce_order_status_cancelled not being fired’ is closed to new replies.