• Resolved uidb4056

    (@uidb4056)


    Hello,

    Is there a way to programmatically check the status of the plugin?

    Thanks in advance

    Robert

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Saji

    (@gookaani)

    Hi Robert,

    Thank you for your question. To programmatically check the status of a plugin, you can utilize the woo_store_vacation_vacation_mode action hook. This hook allows you to determine if your shop is currently in vacation mode.

    Additionally, when the shop is closed, the woo-store-vacation-shop-closed class will be added to the body tag. You can use this class in your CSS or JavaScript to perform specific actions or styles when the shop is closed.

    For additional information, please refer to the?plugin documentation.

    https://mypreview.github.io/woo-store-vacation/#developers

    I hope this helps! Let me know if you have any further questions.

    Thread Starter uidb4056

    (@uidb4056)

    Hello,

    Many thanks for your answer, however I’m looking for a condition to use on a if-then-else clause to set one action or other in function of the status of vacation.

    Best regards,

    Robert

    Plugin Contributor Saji

    (@gookaani)

    At this time, the plugin does not provide a direct flag or condition that you can use in an if-then-else clause to check the status of the vacation mode.

    However, as mentioned earlier, you can still utilize the woo_store_vacation_vacation_mode action hook to perform specific actions based on the status of the vacation mode. By hooking into this action, you can execute custom code when the vacation mode is enabled or disabled.

    I hope this clarifies the situation. If you have any further questions, please let me know.

    • This reply was modified 1 year, 8 months ago by Saji.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Vacation status’ is closed to new replies.