• Resolved DamirCalusic

    (@webkreativ)


    Hi,

    I am using following filters listed below with success:

    1. login_with_vipps_openid_scope = Adds scope birthDate
    2. login_with_vipps_authenticate_user = Checking birthDate 25+
    3. login_with_vipps_invalid_user_message = Message stating user is below 25+

    Now I need to save the the birthDate to the user profile (need to add it to WooCommerce order later) and I wonder how I could achieve this?

    Is tehre any filter after authentication and redirection that cpuld help me fecth the loggedin users ID or is there any other filter?

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    There are several filters; for instance there is a

    'continue_with_vipps_before_user_login', $user, $session

    — which is called on every Vipps login just before the user is logged in. The session will contain all userinfo from Vipps. The $user is here a WP_User so you can store metadata the normal way; the id is $user->ID. You can also use ‘continue_with_vipps_before_woocommerce_user_login‘ for only Woo logins.

    Thread Starter DamirCalusic

    (@webkreativ)

    Hi,

    Many thanks. That worked totally perfect!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Save birthDate after authentication success’ is closed to new replies.