Answers for "how to find wordpress admin username and password"

PHP
1

wp is user admin

if ( current_user_can('administrator') ) {} // also others than admin w same capabilities
if ( is_user_admin() ){} // if it is admin
if ( is_admin() ){} //if the view is not the admin interface but the theme
Posted by: Guest on June-04-2021
1

wordpress get username

$current_user = wp_get_current_user();
echo($current_user->user_login);
Posted by: Guest on January-29-2021

Code answers related to "how to find wordpress admin username and password"

Browse Popular Code Answers by Language