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.
// 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
-
auth0_delete_meta
filter/** * Short circuits deleting a user's Auth0 meta values. */ apply_filters( 'auth0_delete_meta', null, $user_id, $key ); -
auth0_get_meta
filter/** * Short circuits the return value of the Auth0 user meta field. */ apply_filters( 'auth0_get_meta', null, $user_id, $key ); -
auth0_update_meta
filter/** * Short circuits updating a user's Auth0 meta values. */ apply_filters( 'auth0_update_meta', null, $user_id, $key, $value ); -
find_auth0_user
filter/** * Short-circuits the user query below. */ apply_filters( 'find_auth0_user', null, $id ); -
apply_filters( 'auth0_get_auto_login_connection', $this->a0_options->get('auto_login_method') ); -
auth0_get_wp_user
filterapply_filters( 'auth0_get_wp_user', $user, $userinfo ); -
auth0_jwt_max_age
filterapply_filters( 'auth0_jwt_max_age', null ); -
apply_filters( 'auth0_migration_ws_authenticated', $user ); -
auth0_settings_fields
filterapply_filters( 'auth0_settings_fields', $options, $id ); -
auth0_auth_scope
filterapply_filters( 'auth0_auth_scope', $default_scope, $context ); -
auth0_authorize_state
filterapply_filters( 'auth0_authorize_state', $state, $filtered_params ); -
auth0_authorize_url
filterapply_filters( 'auth0_authorize_url', $auth_url, $params ); -
auth0_authorize_url_params
filterapply_filters( 'auth0_authorize_url_params', $params, $connection, $redirect_to ); -
auth0_before_login
actiondo_action( 'auth0_before_login', $user, $userinfo ); -
auth0_coo_auth0js_url
filterapply_filters( 'auth0_coo_auth0js_url', WPA0_AUTH0_JS_CDN_URL ); -
auth0_create_user_data
filterapply_filters( 'auth0_create_user_data', $user_data, $userinfo ); -
auth0_die_on_login_output
filterapply_filters( 'auth0_die_on_login_output', esc_html($html), esc_html($msg), esc_html($code), false ); -
auth0_id_token_issuer
filterapply_filters( 'auth0_id_token_issuer', 'https://' . $this->a0_options->get_auth_domain() . '/' ); -
auth0_insert_error
actiondo_action( 'auth0_insert_error', $new_entry, $error, $section ); -
auth0_jwt_leeway
filterapply_filters( 'auth0_jwt_leeway', null ); -
auth0_jwt_org_id
filterapply_filters( 'auth0_jwt_org_id', $this->a0_options->get_auth_organization() ); -
auth0_lock_options
filterapply_filters( 'auth0_lock_options', $options_obj ); -
auth0_login_css
filterapply_filters( 'auth0_login_css', '' ); -
auth0_login_form_tpl
filterapply_filters( 'auth0_login_form_tpl', $login_tpl, $lock_options, $canShowLegacyLogin ); -
auth0_logout_url
filterapply_filters( 'auth0_logout_url', $redirect_url ); -
auth0_nonce_cookie_name
filterapply_filters( 'auth0_nonce_cookie_name', static::NONCE_COOKIE_NAME ); -
apply_filters( 'auth0_settings_constant_prefix', 'AUTH0_ENV_' ); -
auth0_slo_return_to
filterapply_filters( 'auth0_slo_return_to', home_url() ); -
auth0_state_cookie_name
filterapply_filters( 'auth0_state_cookie_name', self::STATE_COOKIE_NAME ); -
apply_filters( 'auth0_use_management_api_for_userinfo', true ); -
auth0_user_login
actiondo_action( 'auth0_user_login', $user->ID, $userinfo, $is_new, $id_token, $access_token, $refresh_token ); -
auth0_verify_email_page
filterapply_filters( 'auth0_verify_email_page', $html, $userinfo, '' ); -
secure_signon_cookie
filterapply_filters( 'secure_signon_cookie', $secure_cookie, [ 'user_login' => $user->user_login, 'user_password' => null, 'remember' => $remember_users_session, ] ); -
wp_auth0_get_option
filterapply_filters( 'wp_auth0_get_option', $value, $key ); -
wp_login
actiondo_action( 'wp_login', $user->user_login, $user ); -
wpa0_should_create_user
filterapply_filters( 'wpa0_should_create_user', true, $userinfo ); -
wpa0_user_created
actiondo_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: