Hi @iammvc,
Thank you for reaching out to us! I understand you’re looking for a way to detect when WooCommerce is migrating orders to High-Performance Order Storage (HPOS). WooCommerce does provide a way to check if the HPOS migration is happening. You can look for a specific action hook that’s triggered during the migration process. This hook can be used to determine when the migration is taking place and to disable other hooks accordingly. To give you the most accurate guidance, could you please provide a bit more information about your setup? Specifically:
- Which version of WooCommerce are you currently using?
- Are you looking to disable hooks globally or conditionally for specific orders?
- Could you share an example of the hooks you’re trying to disable?
In the meantime, you can find more information about HPOS and its implementation in the WooCommerce documentation here.
Looking forward to your response to assist you further!