Hide content on vacation | WordPress.org

[ad_1]

Plugin Contributor
Saji

(@gookaani)

Hey there, thank you for reaching out!

The plugin adds the woo-store-vacation-shop-closed class name to the body while the store is in vacation mode, so you can hide the button using CSS. Alternatively, you can use the woo_store_vacation_vacation_mode action hook to remove your custom button.

For more information, please refer to our developer guide.

Enjoy your summer ☀️ 🌴!

Thank you for your answer. Perfect, with the hook and the class everything works.

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer