Next Active Directory Integration 3.2.4 has 13 actions and 24 filters, read directly from its source code on Nov 18, 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 Next Active Directory Integration fires an action
add_action( 'next_ad_int_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Next Active Directory Integration is about to use
add_filter( 'wpmu_blogs_columns', function( $sites_columns ) {
// Change $sites_columns here.
return $sites_columns;
}, 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
-
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_after_create_or_update_user
filter Copy link Customise this hook/** * This filter can be used in order to implement custom checks validating the * credentials, ldapAttributes and $wpUser of the user currently trying to * authenticate against your Active Directory. You can intercept the * authentication process by returning false. */ apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_after_create_or_update_user", $authenticatedCredentials, $ldapAttributes, $wpUser ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_before_create_or_update_user
filter Copy link Customise this hook/** * This filter can be used in order to implement custom checks validating the * ldapAttributes and credentials of the user currently trying to authenticate * against your Active Directory. */ apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_before_create_or_update_user", $authenticatedCredentials, $ldapAttributes ); -
/** * Filter the displayed site columns in Sites list table. */ apply_filters( 'wpmu_blogs_columns', $sites_columns ); -
apply_filters( 'authorize', $authenticatedCredentials ); -
apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded", $authenticatedCredentials ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}ad2wp_after_user_synchronize
action Copy link Customise this hookdo_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}ad2wp_after_user_synchronize", $syncStatus, $adiUser, $credentials, $ldapAttributes ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_configure_credentials
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_configure_credentials", $r ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_enable_login_check
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_enable_login_check", $r ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_form_login_requires_ad_authentication
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_form_login_requires_ad_authentication", $login ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_sso_login_requires_ad_authentication
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}auth_sso_login_requires_ad_authentication", $username ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}create_dependency_active_directory_context
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}create_dependency_active_directory_context", null, $this->getMultisiteConfigurationService() ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}ldap_filter_synchronizable_attributes
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}ldap_filter_synchronizable_attributes", $attributeNames, $userQuery ); -
apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}ldap_map_userinfo", false, $matchesFromLdap, $matchesFromLdap['count'], $userQuery, $attributeNames ); -
apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}logging_custom_path", $customPath ); -
apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}logging_enable", $enableLogging ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded_create_redirect_uri
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded_create_redirect_uri", '' ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded_do_redirect
action Copy link Customise this hookdo_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded_do_redirect", $user, $exit ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded_exit_after_redirect
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}login_succeeded_exit_after_redirect", $exit ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}object_has_ad_context_membership
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}object_has_ad_context_membership", $r, $objectSid, $primaryDomainOnly, $this ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}register_form_login_services
action Copy link Customise this hookdo_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}register_form_login_services" ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sso_profile_located", $credentials, $profileMatch ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_clean_existing_roles
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_clean_existing_roles", $cleanExistingRoles, $wordPressRoles, $wpUser, $roleMapping ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_filter_roles
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_filter_roles", $wordPressRoles, $cleanExistingRoles, $wpUser, $roleMapping ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_filter_synchronizable_users
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_filter_synchronizable_users", $users ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_filter_user_before_synchronize
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_ad2wp_filter_user_before_synchronize", $adiUser, $credentials, $ldapAttributes ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_wp2ad_after_user_synchronize
action Copy link Customise this hookdo_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_wp2ad_after_user_synchronize", $status, $wpUser, $attributesToSync, $allowedAttributes ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_wp2ad_filter_synchronizable_attributes
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_wp2ad_filter_synchronizable_attributes", $attributesToSync, $wpUser, $allowedAttributes ); -
{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_wp2ad_filter_synchronizable_users
filter Copy link Customise this hookapply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}sync_wp2ad_filter_synchronizable_users", $users ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_after_create", $user, $syncToWordPress, $writeUserMeta ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_after_disable", $wpUser ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_after_enable", $wpUser, $isRestored ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_after_update", $user, $wpUser, $syncToWordPress, $writeUserMeta ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_before_disable", $wpUser, $isUserAlreadyDisabled ); -
do_action( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_before_update", $user, $syncToWordPress, $writeUserMeta ); -
apply_filters( "{NEXT_ACTIVE_DIRECTORY_INTEGRATION_PREFIX}user_create_email", $wpUser, $preferredEmail ); -
do_action( 'next_ad_int_loaded' ); -
do_action( 'wp_login', $user->user_login, $user );
Generated from Next Active Directory Integration'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: