WordPress Developer Ukraine, Kyiv
Get the current logged-in user data in WordPress

Get the current logged-in user data in WordPress

Get the current user in WordPress: wp_get_current_user() and friends Showing the name of the logged-in user, loading their own data, hiding a block from guests: almost every project needs the current user. WordPress has a small set of functions for it, and the only real pitfall is calling them too early, before WordPress knows who…
Change the WordPress login URL without a plugin

Change the WordPress login URL without a plugin

Hide the WordPress login page behind a secret key, without a plugin Every bot on the internet knows /wp-login.php, and a new site gets password guessing attempts within hours. Moving or hiding the login page does not make passwords stronger, but it removes almost all of this automated noise: fewer requests, smaller logs, less load.…
How to Password-Protect Your Entire WordPress Site with .htaccess

How to Password-Protect Your Entire WordPress Site with .htaccess

How to password-protect your entire WordPress site with .htaccess Sometimes the whole site has to be hidden from prying eyes, for example during development or on a staging server. The quickest and most reliable way is HTTP Basic Authentication with .htpasswd and .htaccess: the server asks for a login before WordPress even starts, and no…
How to Add a Front-End Login Form in WordPress

How to Add a Front-End Login Form in WordPress

Add a login form to any page in WordPress Sending users to wp-login.php works, but on a membership site or an online shop it breaks the design: the visitor suddenly sees a different page with the WordPress logo. The login form can be shown on any page of the theme instead.
How to Create a Custom Login Page in WordPress

How to Create a Custom Login Page in WordPress

Rebrand the WordPress login page without editing core files The default login page at wp-login.php works fine, but the WordPress logo and the link to wordpress.org look strange on a client’s site. WordPress has hooks for the logo, its link and its title, and a hook to load your own stylesheet on the login screen,…