Display a Custom Login Message
Show a custom message on the WordPress login page.
<?php
function custom_login_message() {
if (isset($_GET['login']) && $_GET['login'] == 'failed') {
echo '<p class="login-error">Invalid username or password.</p>';
}
}
add_action('login_message', 'custom_login_message');
Post Comment