• HI,
    I would like to add a custom action so that when a product has its Pre-Order status removed manually by myself, I can perform a custom action and update the product category automatically.

    I had a look through the code and I’m either not seeing it or looking in the wrong place but any assistance in finding the relevant action hook would be appreciated.

    Many thanks in advance and well done with this great plugin, perhaps it is possible to add a section too perform a custom action when the product status is changed as a feature? but perhaps not.

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi @phillmybuttons,

    You can try with the action in file yith-woocommerce-pre-order/includes/class.yith-pre-order-product.php, line 33:

    do_action( 'yith_ywpo_pre_order_status_changed', $this->product, $status, $old_status );

    This action is fired every time the Pre-Order status changes.
    Please try it and let us know.

    Regards,
    YIThemes

Viewing 1 replies (of 1 total)
  • The topic ‘Action when chnaging status from pre order to regular product’ is closed to new replies.