Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function verify_user_pass($user, $username, $password) {
- $login_page = home_url('/login/');
- if($username == "" || $password == "") {
- wp_redirect($login_page . "?login=empty");
- exit;
- }
- }
- add_filter('authenticate', 'verify_user_pass', 1, 3);
Add Comment
Please, Sign In to add comment