Support

Account

Home Forums General Issues Deny user login/redirect based on ACF values Reply To: Deny user login/redirect based on ACF values

  • You are looking to use this hook https://developer.wordpress.org/reference/hooks/login_redirect/.

    There are examples on that page.

    The hook passes the user data, you use that to get the field from the user and redirect based on the field value

    
    $value = get_field('field_name', $user);