Category: Login
Replace WordPress Logo on Login Page (copy)
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘.login h1 a {background-image:url(%1$s) !important; margin:0…Continue reading
Replace WordPress Logo on Login Page
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
Disable Login by Email
remove_filter( ‘authenticate’, ‘wp_authenticate_email_password’, 20 );Continue reading
Hide Login Errors in WordPress
add_filter( ‘login_errors’, function ( $error ) { // Edit the line below to customize the message. return ‘Something is wrong!’; } );Continue reading
Disable Login Screen Language Switcher
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading