Hey. I’m not sure if it is a “bug” or a “user-error” on my part, but when I try to integrate a Vipps login/register option, together with the available social logins from the addon, it removes the login options from the social login addon.
Here is the snippet i use to get the “login with vipps” in the log in form and register form:
add_filter(
'hivepress/v1/forms/user_login',
function( $form ) {
$form['header'] = do_shortcode('[login-with-vipps text="Log in with Vipps" application="wordpress"]');
return $form;
},
1000
);
add_filter(
'hivepress/v1/forms/user_register',
function( $form ) {
$form['header'] = do_shortcode('[continue-with-vipps text="Continue with Vipps" application="wordpress"]');
return $form;
},
1000
);
Thank you