Support » Plugin: WooCommerce Auto Restore Stock » Does not work with Hold Stock status change

  • WooCommerce v2.6.2

    With “Manage Stock” enabled and “Hold Stock” X minutes set, WooCommerce automatically changes the order status from “Pending Payment” to “Cancelled”.

    It seems that this plugin is not hooking into this automatism.

    I confirm that it works as expacted when the status is manually changed to cancelled or refunded.

    Is it possible to also integrate the plugin ability for the described automatic process? Thank you

Viewing 1 replies (of 1 total)
  • It works with this line addid to the plugin __construct() function:

    add_action( 'woocommerce_order_status_pending_to_cancelled', array( $this, 'restore_order_stock' ), 10, 1 );

Viewing 1 replies (of 1 total)
  • The topic ‘Does not work with Hold Stock status change’ is closed to new replies.