# Coming Soon Whitelist

[![WordPress Plugin Version](https://img.shields.io/badge/WordPress-6.8%20tested-blue.svg)](https://wordpress.org/)
[![WooCommerce Compatibility](https://img.shields.io/badge/WooCommerce-10.1.2%20tested-purple.svg)](https://woocommerce.com/)
[![PHP Version](https://img.shields.io/badge/PHP-8.0%2B-777BB4.svg)](https://php.net/)
[![License](https://img.shields.io/badge/License-GPL%20v2%2B-green.svg)](https://www.gnu.org/licenses/gpl-2.0.html)

A WordPress plugin that allows specific pages to bypass WooCommerce's "Coming Soon" mode when it's set to apply to the entire site. Perfect for keeping important pages like terms of service, privacy policy, or contact pages accessible while your store is in site-wide coming soon mode.

## ✨ Features

- 🎯 **Smart Detection**: Automatically detects WooCommerce Coming Soon mode status
- ✅ **Simple Interface**: Clean checkbox interface to select pages/posts
- 🔍 **Search Functionality**: Quickly find pages with built-in search
- ⚡ **High Performance**: Built-in caching with automatic cache invalidation
- 🌐 **HPOS Compatible**: Full compatibility with WooCommerce High-Performance Order Storage
- 🚀 **User-Friendly**: Contextual notices that guide users when plugin is/isn't needed
- ☕ **Developer Friendly**: Built with WordPress coding standards

## 🚀 Installation

### From WordPress Admin (Recommended)
1. Go to `Plugins > Add New` in your WordPress admin
2. Search for "Coming Soon Whitelist"
3. Install and activate the plugin

### Manual Installation
1. Download the latest release from [GitHub Releases](https://github.com/VillDevNO/coming-soon-whitelist/releases)
2. Upload the plugin files to `/wp-content/plugins/coming-soon-whitelist/`
3. Activate the plugin through the 'Plugins' screen in WordPress

## ⚙️ Setup

1. **Enable WooCommerce Coming Soon Mode**:
   - Go to `WooCommerce > Settings > General`
   - Enable "Coming Soon Mode"
   - **Important**: Set it to "Apply to entire site" (not just store pages)

2. **Configure Whitelist**:
   - Go to `Settings > Coming Soon Whitelist`
   - Search and select pages you want to remain accessible
   - Click "Save Whitelist"

## 🎯 Use Cases

Perfect for:
- 🏪 **E-commerce Development**: Keep legal pages accessible during store setup
- 📄 **Compliance**: Maintain access to terms of service, privacy policy, etc.
- 📞 **Customer Support**: Keep contact pages available for inquiries
- 🔧 **Maintenance Mode**: Allow specific pages during site maintenance

## 📋 Requirements

- **WordPress**: 5.0 or higher (tested up to 6.8)
- **PHP**: 8.0 or higher
- **WooCommerce**: 5.0 or higher (tested up to 10.1.2) - **Required Dependency**
- **Coming Soon Mode**: Must be set to "Apply to entire site"

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## 📝 Changelog

### v1.0.0
- 🎉 **Initial release**
- ✅ **Simple Interface**: Checkbox selection for pages/posts to whitelist
- 🎯 **Smart Detection**: Automatic WooCommerce Coming Soon mode detection  
- ⚡ **Performance**: Built-in caching for optimal speed
- 🌐 **Translation Ready**: Full internationalization support
- 🔧 **Compatibility**: WordPress 6.8, WooCommerce 10.1.2, PHP 8.0+

## ☕ Support Development

If this plugin was helpful for your project, consider [buying me a coffee](https://buymeacoffee.com/villdevno) to support future development!

## 📄 License

This plugin is licensed under the GPL v2 or later. See [LICENSE](LICENSE) for details.

## 👨‍💻 Author

**VillDev** - [https://dioramica.no/villdev/](https://dioramica.no/villdev/)

---

⭐ If you find this plugin useful, please consider giving it a star on GitHub!
