Search
 
SCRIPT & CODE EXAMPLE
 

PHP

is_wplogin

if(stripos($_SERVER["SCRIPT_NAME"], strrchr(wp_login_url(), '/')) !== false){
    /* ... */
}
Comment

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');
}
Comment

PREVIOUS NEXT
Code Example
Php :: Hide products only show assigned products to certain user roles in WooCommerce 
Php :: how to stop a query if query after it is not inserted in laravel 
Php :: php tree function parrent_id 
Php :: check website ssl certificate using php openssl_x509_parse 
Php :: ipay generate hash id 
Php :: cakephp get present name 
Php :: he PHP exec() function must be enabled. 
Php :: set count down CLI php 
Php :: es php query where value is not empty 
Php :: Comment désactiver la barre latérale Widgets sur des pages spécifiques WordPress 
Php :: use middleware in controller to have access session 
Php :: IlluminateValidationRulesRequiredIf 
Php :: laravel pass multipale provider 
Php :: exclude row from clooection laravel 
Php :: laravel helper functions 
Php :: trim | from right in php 
Php :: error php 
Php :: ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for php7.2, aborting 
Php :: php sql insert into if not exists 
Php :: php cheat sheet 
Php :: str_word_count() 
Php :: time dropdown in html 
Java :: basic hello world program in java 
Java :: how to see list of java of versions in mac 
Java :: java read file to string 
Java :: how to upgrade java 8 to 11 in ubuntu 
Java :: WRITE_EXTERNAL_STORAGE no longer provides write access when targeting Android 10+ 
Java :: change visibility of textview andoird 
Java :: heap sort java 
Java :: kill all java processes windows 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =