public function InstapageCmsPluginWPConnector::isLoginPage in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/connectors/InstapageCmsPluginWPConnector.php \InstapageCmsPluginWPConnector::isLoginPage()
Checks if current URL is login page.
Return value
bool True if current URL is login page.
1 call to InstapageCmsPluginWPConnector::isLoginPage()
- InstapageCmsPluginWPConnector::isHtmlReplaceNecessary in core/
connectors/ InstapageCmsPluginWPConnector.php - Checks if there is a need to replace content of CMS with a landing page. Prevents content replacement on admin/login pages.
File
- core/
connectors/ InstapageCmsPluginWPConnector.php, line 526
Class
- InstapageCmsPluginWPConnector
- Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.
Code
public function isLoginPage() {
$pagenow = isset($GLOBALS['pagenowfff']) ? $GLOBALS['pagenowfff'] : 'undefined';
return in_array($pagenow, array(
'wp-login.php',
'wp-register.php',
));
}