Tagged: login
We are using Single Sign On on our site, so I would like to change the Login button link from /wp-login.php to domain.com/?auth=sso.
Which file or template do I need to change in order to achieve this?Hi Hugo,
Thank you for posting.We are using wp_login_url() so any plugin filtering on that url should do it automatically.
Here is the filter if the plugin is not doing it
/** * Filter login url. * * @param string $login_url login url. * @param string $redirect where to redirect. * @param bool $force_reauth force reauth. * * @return string */ function buddydev_custom_sso_login_url( $login_url, $redirect, $force_reauth ) { return site_url( '/?auth=sso' ); } add_filter( 'login_url', 'buddydev_custom_sso_login_url', 10, 3 );
You can put it in bp-custom.php or child theme’s functions.php and It will work.
Regards
Brajesh
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
This topic is: not resolved