Tag: login
WP Login – Replace WP Logo, Logo Link, Header Text
add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://cportal.nowcoast.com/wp-content/uploads/2026/03/COA-cPortal-WPAdmin.svg’; $logo_width = 84; $logo_height = 84; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading
Disable Login Screen Language Switcher
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
Extend Login Expiration Time
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
Remove Login Shake Animation
add_action( ‘login_footer’, function () { remove_action( ‘login_footer’, ‘wp_shake_js’, 12 ); } );Continue reading
Extend Login Expiration Time (copy)
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
Extend Login Expiration Time (copy)
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
Disable Default Login Form and Require WordPress.com
add_filter( ‘jetpack_remove_login_form’, ‘__return_true’ );Continue reading
Disable Login Screen Language Switcher
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
Remove Login Shake Animation
add_action( ‘login_footer’, function () { remove_action( ‘login_footer’, ‘wp_shake_js’, 12 ); } );Continue reading