Authorizer 3.17.2 has 1 actions and 35 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 Authorizer fires an action
add_action( 'authorizer_user_register', function( $user, $user_data ) {
// Your code runs here.
}, 10, 2 );
// Change a value Authorizer is about to use
add_filter( 'authorizer_google_client_id', function( $auth_settings ) {
// Change $auth_settings here.
return $auth_settings;
}, 10, 1 );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
-
/** * Filters the Google Client ID used by Authorizer to authenticate. */ apply_filters( 'authorizer_google_client_id', $auth_settings['google_clientid'] ); -
/** * Filters the Google Client Secret used by Authorizer to authenticate. */ apply_filters( 'authorizer_google_client_secret', $auth_settings['google_clientsecret'] ); -
/** * Filters the message anonymous users see when visiting public pages on a * private site. */ apply_filters( 'authorizer_message_anonymous_users', $auth_settings['access_redirect_to_message'] ); -
/** * Filter the branding options available in the "Advanced" tab of the * Authorizer settings page. */ apply_filters( 'authorizer_add_branding_option', $branding_options ); -
/** * Developers can use the `authorizer_has_access` filter to override restricted * access on certain pages. Note that the restriction checks happens before * WordPress executes any queries, so use the $wp variable to investigate what * the visitor is trying to load. */ apply_filters( 'authorizer_has_access', $has_access, $wp ); -
authorizer_oauth2_{$oauth2_server_id}_dangerously_skip_email_verification
filter Copy link Customise this hook/** * Filters the Oauth2 Skip email verification option. A truthy value will skip * verification. */ apply_filters( "authorizer_oauth2_{$oauth2_server_id}_dangerously_skip_email_verification", $oauth2_dangerously_skip_email_verification ); -
/** * Filter the generic oauth2 authenticated user email. */ apply_filters( 'authorizer_oauth2_generic_authenticated_email', $email, $attributes ); -
/** * Filter the parameters passed to the generic oauth2 authorization endpoint. */ apply_filters( 'authorizer_oauth2_generic_authorization_parameters', array() ); -
authorizer_oidc_{$oidc_server_id}_dangerously_skip_email_verification
filter Copy link Customise this hook/** * Filters the OIDC Skip email verification option. A truthy value will skip * verification. */ apply_filters( "authorizer_oidc_{$oidc_server_id}_dangerously_skip_email_verification", $oidc_dangerously_skip_email_verification ); -
/** * Specify additional LDAP user attributes to retrieve during authentication. * May be used by plugins in `authorizer_user_register`. */ apply_filters( 'authorizer_additional_ldap_attributes_to_retrieve', array() ); -
/** * Filters the selected branding option value. Note: the selected branding * option value also needs to exist in the available options (via the * `authorizer_add_branding_option` filter above). */ apply_filters( 'authorizer_advanced_branding', $auth_settings['advanced_branding'], $branding_options ); -
/** * Filter whether to block the currently logging in user based on any of their * user attributes. */ apply_filters( 'authorizer_allow_login', true, $user_data ); -
/** * Filter whether to automatically approve the currently logging in user based * on any of their user attributes. */ apply_filters( 'authorizer_automatically_approve_login', false, $user_data, $user ); -
/** * Filter the role of the user currently logging in. The role will be set to * the default (specified in Authorizer options) for new users, or the user's * current role for existing users. This filter allows changing user roles * based on custom CAS/LDAP attributes. */ apply_filters( 'authorizer_custom_role', $default_role, $user_data, $user ); -
/** * Filter additional roles to add to the user currently logging in. This filter * allows changing user roles based on custom CAS/LDAP attributes. */ apply_filters( 'authorizer_custom_roles_to_add', $roles_to_add, $user_data, $user ); -
/** * Filter additional roles to remove from the user currently logging in. This * filter allows changing user roles based on custom CAS/LDAP attributes. */ apply_filters( 'authorizer_custom_roles_to_remove', $roles_to_remove, $user_data, $user ); -
/** * Filters the email body sent to new users when approving them. */ apply_filters( 'authorizer_email_approved_users_body', $body ); -
/** * Filters the email subject sent to new users when approving them. */ apply_filters( 'authorizer_email_approved_users_subject', $subject ); -
/** * Filters the LDAP password used by Authorizer to authenticate. */ apply_filters( 'authorizer_ldap_password', $auth_settings['ldap_password'] ); -
/** * Filter LDAP search filter. */ apply_filters( 'authorizer_ldap_search_filter', $search_filter, $auth_settings['ldap_uid'], $username ); -
/** * Filters the LDAP user used by Authorizer to authenticate. */ apply_filters( 'authorizer_ldap_user', $auth_settings['ldap_user'] ); -
/** * Filters the message blocked users see after logging in. */ apply_filters( 'authorizer_login_message_blocked_users', $auth_settings['access_blocked_redirect_to_message'] ); -
/** * Filters the message pending users see after logging in. */ apply_filters( 'authorizer_login_message_pending_users', $auth_settings['access_pending_redirect_to_message'] ); -
/** * Filters the Oauth2 Skip email verification option. A truthy value will skip * verification. */ apply_filters( "authorizer_oauth2_{$i}_dangerously_skip_email_verification", $oauth2_dangerously_skip_email_verification ); -
/** * Filter the azure oauth2 authenticated user email. */ apply_filters( 'authorizer_oauth2_azure_authenticated_email', $email, $attributes ); -
/** * Filters the Oauth2 Client ID used by Authorizer to authenticate. */ apply_filters( 'authorizer_oauth2_client_id', $oauth2_clientid ); -
/** * Filters the Oauth2 Client Secret used by Authorizer to authenticate. */ apply_filters( 'authorizer_oauth2_client_secret', $oauth2_clientsecret ); -
/** * Filters the OIDC Skip email verification option. A truthy value will skip * verification. */ apply_filters( "authorizer_oidc_{$i}_dangerously_skip_email_verification", $oidc_dangerously_skip_email_verification ); -
/** * Fires after an external user is authenticated for the first time and a new * WordPress account is created for them. */ do_action( 'authorizer_user_register', $user, $user_data ); -
apply_filters( 'simple_history_log_warning', __( 'OAuth2 server returned an Exception. Details:', 'authorizer' ), array( 'error' => $e->getMessage(), ) ); -
apply_filters( 'the_content', $auth_settings['access_blocked_redirect_to_message'] ); -
apply_filters( 'authorizer_oauth2_dangerously_skip_email_verification', $oauth2_dangerously_skip_email_verification ); -
apply_filters( 'authorizer_oidc_dangerously_skip_email_verification', $oidc_dangerously_skip_email_verification ); -
apply_filters( 'authorizer_oidc_client_id', $oidc_client_id ); -
apply_filters( 'authorizer_oidc_client_secret', $oidc_client_secret ); -
apply_filters( 'editable_roles', $all_roles );
Generated from Authorizer's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: