Login by Auth0 icon
Security

Login by Auth0 hooks reference

  • By Auth0
  • v4.6.2
  • Updated

Login by Auth0 4.6.2 has 5 actions and 32 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Login by Auth0 fires an action
add_action( 'auth0_before_login', function( $user, $userinfo ) {
	// Your code runs here.
}, 10, 2 );

// Change a value Login by Auth0 is about to use
add_filter( 'auth0_delete_meta', function( $value, $user_id, $key ) {
	// Change $value here.
	return $value;
}, 10, 3 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • lib/WP_Auth0_UsersRepo.php line 263
    /**
     * Short circuits deleting a user's Auth0 meta values.
     */
    apply_filters( 'auth0_delete_meta', null, $user_id, $key );
  • lib/WP_Auth0_UsersRepo.php line 199
    /**
     * Short circuits the return value of the Auth0 user meta field.
     */
    apply_filters( 'auth0_get_meta', null, $user_id, $key );
  • lib/WP_Auth0_UsersRepo.php line 232
    /**
     * Short circuits updating a user's Auth0 meta values.
     */
    apply_filters( 'auth0_update_meta', null, $user_id, $key, $value );
  • lib/WP_Auth0_UsersRepo.php line 135
    /**
     * Short-circuits the user query below.
     */
    apply_filters( 'find_auth0_user', null, $id );
  • lib/WP_Auth0_LoginManager.php line 87 · used in 2 places
    apply_filters( 'auth0_get_auto_login_connection', $this->a0_options->get('auto_login_method') );
  • lib/WP_Auth0_LoginManager.php line 300 · used in 2 places
    apply_filters( 'auth0_get_wp_user', $user, $userinfo );
  • lib/WP_Auth0_LoginManager.php line 482 · used in 2 places
    apply_filters( 'auth0_jwt_max_age', null );
  • lib/WP_Auth0_Routes.php line 204 · used in 2 places
    apply_filters( 'auth0_migration_ws_authenticated', $user );
  • lib/admin/WP_Auth0_Admin_Generic.php line 51 · used in 2 places
    apply_filters( 'auth0_settings_fields', $options, $id );
  • lib/WP_Auth0_LoginManager.php line 449
    apply_filters( 'auth0_auth_scope', $default_scope, $context );
  • lib/WP_Auth0_LoginManager.php line 505
    apply_filters( 'auth0_authorize_state', $state, $filtered_params );
  • lib/WP_Auth0_LoginManager.php line 525
    apply_filters( 'auth0_authorize_url', $auth_url, $params );
  • lib/WP_Auth0_LoginManager.php line 496
    apply_filters( 'auth0_authorize_url_params', $params, $connection, $redirect_to );
  • lib/WP_Auth0_LoginManager.php line 383
    do_action( 'auth0_before_login', $user, $userinfo );
  • lib/WP_Auth0_Routes.php line 137
    apply_filters( 'auth0_coo_auth0js_url', WPA0_AUTH0_JS_CDN_URL );
  • lib/WP_Auth0_Users.php line 88
    apply_filters( 'auth0_create_user_data', $user_data, $userinfo );
  • lib/WP_Auth0_LoginManager.php line 617
    apply_filters( 'auth0_die_on_login_output', esc_html($html), esc_html($msg), esc_html($code), false );
  • lib/WP_Auth0_LoginManager.php line 629
    apply_filters( 'auth0_id_token_issuer', 'https://' . $this->a0_options->get_auth_domain() . '/' );
  • lib/WP_Auth0_ErrorLog.php line 175
    do_action( 'auth0_insert_error', $new_entry, $error, $section );
  • lib/WP_Auth0_LoginManager.php line 641
    apply_filters( 'auth0_jwt_leeway', null );
  • lib/WP_Auth0_LoginManager.php line 643
    apply_filters( 'auth0_jwt_org_id', $this->a0_options->get_auth_organization() );
  • lib/WP_Auth0_Lock.php line 159
    apply_filters( 'auth0_lock_options', $options_obj );
  • templates/auth0-login-form.php line 19
    apply_filters( 'auth0_login_css', '' );
  • lib/WP_Auth0_Lock.php line 238
    apply_filters( 'auth0_login_form_tpl', $login_tpl, $lock_options, $canShowLegacyLogin );
  • lib/WP_Auth0_LoginManager.php line 427
    apply_filters( 'auth0_logout_url', $redirect_url );
  • lib/WP_Auth0_Options.php line 68
    apply_filters( 'auth0_settings_constant_prefix', 'AUTH0_ENV_' );
  • lib/WP_Auth0_LoginManager.php line 425
    apply_filters( 'auth0_slo_return_to', home_url() );
  • lib/WP_Auth0_LoginManager.php line 215
    apply_filters( 'auth0_use_management_api_for_userinfo', true );
  • lib/WP_Auth0_LoginManager.php line 405
    do_action( 'auth0_user_login', $user->ID, $userinfo, $is_new, $id_token, $access_token, $refresh_token );
  • lib/WP_Auth0_Email_Verification.php line 52
    apply_filters( 'auth0_verify_email_page', $html, $userinfo, '' );
  • lib/WP_Auth0_Options.php line 153
    apply_filters( 'wp_auth0_get_option', $value, $key );
  • wp_login

    action
    lib/WP_Auth0_LoginManager.php line 404
    do_action( 'wp_login', $user->user_login, $user );
  • lib/WP_Auth0_Users.php line 22
    apply_filters( 'wpa0_should_create_user', true, $userinfo );
  • lib/WP_Auth0_Users.php line 97
    do_action( 'wpa0_user_created', $user_id, $email, $password, $firstname, $lastname );

Generated from Login by Auth0's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: