Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

is_wplogin

function is_wplogin(){
    $ABSPATH_MY = str_replace(array('','/'), DIRECTORY_SEPARATOR, ABSPATH);
    return ((in_array($ABSPATH_MY.'wp-login.php', get_included_files()) || in_array($ABSPATH_MY.'wp-register.php', get_included_files()) ) || (isset($_GLOBALS['pagenow']) && $GLOBALS['pagenow'] === 'wp-login.php') || $_SERVER['PHP_SELF']== '/wp-login.php');
}
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
4+7 =