Last active
July 26, 2023 17:23
-
-
Save hivepress/999bbd43632d504c033d063845a01c4d to your computer and use it in GitHub Desktop.
Redirect the user login form to a custom URL (note that this breaks some user flows) #hivepress #users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'hivepress/v1/forms/user_login', | |
function( $form ) { | |
if ( ! isset( $form['redirect'] ) ) { | |
$form['redirect'] = 'custom URL here'; | |
} | |
return $form; | |
}, | |
1000 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment