REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.35 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Internal/ComingSoon/ComingSoonHelper.php
Text
Base64
<?php namespace Automattic\WooCommerce\Internal\ComingSoon; use Automattic\WooCommerce\Admin\WCAdminHelper; /** * Provides helper methods for coming soon functionality. */ class ComingSoonHelper { /** * Returns true when the entire site is live. */ public function is_site_live(): bool { return 'yes' !== get_option( 'woocommerce_coming_soon' ); } /** * Returns true when the entire site is coming soon mode. */ public function is_site_coming_soon(): bool { return 'yes' === get_option( 'woocommerce_coming_soon' ) && 'yes' !== get_option( 'woocommerce_store_pages_only' ); } /** * Returns true when only the store pages are in coming soon mode. */ public function is_store_coming_soon(): bool { return 'yes' === get_option( 'woocommerce_coming_soon' ) && 'yes' === get_option( 'woocommerce_store_pages_only' ); } /** * Return true if the current page should be shown in coming soon mode. */ public function is_current_page_coming_soon(): bool { // Early exit if coming soon mode not active. if ( $this->is_site_live() ) { return false; } if ( $this->is_site_coming_soon() ) { return true; } // Check the current page is a store page when in "store coming soon" mode. if ( $this->is_store_coming_soon() && WCAdminHelper::is_current_page_store_page() ) { return true; } // Default to false. return false; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ComingSoonAdminBarBadge.php
3.63 KB
lrw-r--r--
2024-11-14 01:17:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ComingSoonCacheInvalidator.php
1.14 KB
lrw-r--r--
2024-11-14 01:17:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ComingSoonHelper.php
1.35 KB
lrw-r--r--
2025-03-03 22:28:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ComingSoonRequestHandler.php
9.33 KB
lrw-r--r--
2025-10-06 17:56:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).