Add filter for login form button URL

This will allow developers to e.g. redirect users to an intermediary page before being taken to the SSO provider.
isekai
Rob Skilling 5 years ago
parent 43badcc569
commit 474f6cb361

@ -133,7 +133,7 @@ class OpenID_Connect_Generic_Login_Form {
*/
function make_login_button() {
$text = apply_filters( 'openid-connect-generic-login-button-text', __( 'Login with OpenID Connect' ) );
$href = $this->client_wrapper->get_authentication_url();
$href = apply_filters( 'openid-connect-generic-login-button-url', $this->client_wrapper->get_authentication_url() );
ob_start();
?>

Loading…
Cancel
Save