Does anyone know the add_action()
hook to use immediately after a user is successfully authenticated.
Hook Test based on @mmm's answer
I ran this test from my mu-plugins.php
file:
function check_for_superAdmin() {
if ( is_super_admin() ) { echo 'I\'m a Super Admin !'; exit; }
}
add_action( 'wp_login', 'check_for_superAdmin' );
the check_for_superAdmin()
function works but the is_super_admin()
function does not. I may need to pass a parameter in there. Checking....