Suspend
2 years ago
ActionScheduler.php
2 years ago
AdminPages.php
8 months ago
AdminUrl.php
8 months ago
DB.php
4 years ago
Post.php
5 years ago
Resources.php
5 years ago
SyncHash.php
8 months ago
WCTaxonomies.php
1 year ago
WcAdminPages.php
8 months ago
WpAdminPages.php
1 year ago
WpAdminPages.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Utilities; |
| 4 | |
| 5 | class WpAdminPages { |
| 6 | |
| 7 | /** |
| 8 | * @return bool |
| 9 | */ |
| 10 | public static function isDashboard() { |
| 11 | global $pagenow; |
| 12 | |
| 13 | return is_admin() && 'index.php' === $pagenow; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * @return bool |
| 18 | */ |
| 19 | public static function isPermalinksSettings() { |
| 20 | global $pagenow; |
| 21 | |
| 22 | return is_admin() && 'options-permalink.php' === $pagenow; |
| 23 | } |
| 24 | } |
| 25 |