Nextend Social Login and Register 3.1.27 has 37 actions and 71 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 Nextend Social Login and Register fires an action
add_action( 'login_footer', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Nextend Social Login and Register is about to use
add_filter( 'login_errors', function( $errors ) {
// Change $errors here.
return $errors;
}, 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
-
login_errors
filter/** * Filters the error messages displayed above the login form. */ apply_filters( 'login_errors', $errors ); -
login_messages
filter/** * Filters instructional messages displayed above the login form. */ apply_filters( 'login_messages', $messages ); -
login_body_class
filter/** * Filters the login page body classes. */ apply_filters( 'login_body_class', $classes, $action ); -
login_enqueue_scripts
action/** * Enqueue scripts and styles for the login page. */ do_action( 'login_enqueue_scripts' ); -
login_head
action/** * Fires in the login page header after scripts are enqueued. */ do_action( 'login_head' ); -
login_header
action/** * Fires in the login page header after the body tag is opened. */ do_action( 'login_header' ); -
login_headertext
filter/** * Filters the link text of the header logo above the login form. */ apply_filters( 'login_headertext', $login_header_text ); -
login_headertitle
filter/** * Filters the title attribute of the header logo above login form. */ apply_filters( 'login_headertitle', $login_header_title ); -
login_headerurl
filter/** * Filters link URL of the header logo above login form. */ apply_filters( 'login_headerurl', $login_header_url ); -
login_message
filter/** * Filters the message to display above the login form. */ apply_filters( 'login_message', $message ); -
login_title
filter/** * Filters the title tag content for login page. */ apply_filters( 'login_title', $login_title, $title ); -
/** * Lets extensions clean up the persistent data they created for this provider, * without the core needing to know their storage keys. */ do_action( "nsl_{$this->id}_delete_login_persistent_data", $this ); -
/** * Lets extensions drop the authentication data they stored for this provider * together with the provider's own tokens, so the visitor can start over with * another account. */ do_action( "nsl_{$this->id}_delete_token_persistent_data", $this ); -
/** * Can be used for overriding the account where the social account should be * automatically linked to. */ apply_filters( 'nsl_match_social_account_to_user_id', $user_id, $this, $this->provider ); -
nsl_pre_register_new_user
action/** * Preregister, checks what roles shall be informed about the registration and * sends a notification to them. */ do_action( 'nsl_pre_register_new_user', $this ); -
/** * Extensions that make the plugin store more than the authorization flow * cookie have to amend this answer, so the suggested privacy policy stays * accurate. */ apply_filters( 'nsl_privacy_policy_browser_storage', sprintf(__('Yes, %1$s must create a cookie for visitors who use the social login authorization flow. This cookie required for every provider to secure the communication and to redirect the user back to the last location.', 'nextend-facebook-connect'), 'Nextend Social Login') ); -
/** * The core plugin never loads third party assets, but a feature that does, * such as Google One Tap, must correct this answer rather than leave a "No" * that is no longer true. */ apply_filters( 'nsl_privacy_policy_third_party_assets', __('No') ); -
nsl_redirect_uri_override
filter/** * Parameters: 1: Array with an URL that should be added to the App by default. */ apply_filters( 'nsl_redirect_uri_override', array($this->getBaseRedirectUriForAppCreation()), $this ); -
/** * If the account is created outside of Nextend Social Login, then Nextend * Social Login should be prevented from inserting the user again. For this * "isExternalInsertUser" needs to be set to true. If an error happens in the * external registration, then the error message can be displayed by setting * "error" to a WP_ERROR object. */ apply_filters( 'nsl_register_external_insert_user', $externalInsertUserStatus, $this, $user_data ); -
shake_error_codes
filter/** * Filters the error codes array for shaking the login form. */ apply_filters( 'shake_error_codes', $shake_error_codes ); -
wp_authenticate_user
filter/** * Other plugins use this hook to prevent log in */ apply_filters( 'wp_authenticate_user', $user, '' ); -
nsl-pro
filterapply_filters( 'nsl-pro', false ); -
apply_filters( 'nsl_disabled_login_redirect_url', NextendSocialLogin::getLoginUrl() ); -
do_action( "{$this->id}_login_action_get_user_profile", $data ); -
do_action( "nsl_{$this->getId()}_link_user", $user_id, $this->getId() ); -
wp_login_failed
actiondo_action( 'wp_login_failed', $user->get('user_login'), $userOrError ); -
do_action( "{$this->id}_login_action_redirect", $this ); -
apply_filters( "{$this->id}_login_redirect_url", $fixedRedirect, $this ); -
apply_filters( "{$this->id}_register_redirect_url", $fixedRedirect, $this ); -
nsl_{$this->getId()}_login
actiondo_action( "nsl_{$this->getId()}_login", $user_id, $this, $authOptions ); -
do_action( "nsl_{$this->getId()}_register_new_user", $user_id, $this ); -
apply_filters( "nsl_{$this->providerID}_auth_url_args", $args ); -
apply_filters( "nsl_{$this->providerID}_scopes", $this->scopes ); -
nsl_allow_unlink
filterapply_filters( 'nsl_allow_unlink', true ); -
apply_filters( 'nsl_disabled_register_redirect_url', NextendSocialLogin::getLoginUrl() ); -
nsl_google_sync_node_fields
filterapply_filters( 'nsl_google_sync_node_fields', array(), 'me' ); -
apply_filters( 'nsl_session_use_secure_cookie', false ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $proxyPage, 'page', false, $lang['code'] ); -
apply_filters( "{$this->id}_default_[login_redirect_url", $defaultRedirect, $this ); -
apply_filters( "{$this->id}_default_register_redirect_url", $defaultRedirect, $this ); -
do_action( "{$this->id}_login_action_before", $this ); -
authenticate
filterapply_filters( 'authenticate', $user, $user->get('user_login'), '' ); -
bp_core_template_plugin
filterapply_filters( 'bp_core_template_plugin', 'members/single/plugins' ); -
display_post_states
filterapply_filters( 'display_post_states', array(), $page ); -
do_action( "get_template_part_{$file_name}", $file_name, $name ); -
getimagesize_mimes_to_exts
filterapply_filters( 'getimagesize_mimes_to_exts', array( 'image/jpeg' => 'jpg', 'image/png' => 'png', 'image/gif' => 'gif', 'image/bmp' => 'bmp', 'image/tiff' => 'tif', 'image/webp' => 'webp' ) ); -
login_redirect
filterapply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, wp_get_current_user() ); -
apply_filters( "nsl_{$provider->getId()}_sync_warning", false ); -
nsl_{$this->getId()}_enabled
actiondo_action( "nsl_{$this->getId()}_enabled" ); -
apply_filters( "nsl_{$this->getId()}_extra_settings", array( 'ask_email' => 'when-empty', 'ask_user' => 'never', 'ask_password' => 'never', 'auto_link' => 'email', 'disabled_roles' => array(), 'register_roles' => array( 'default' ) ) ); -
apply_filters( "nsl_{$this->getId()}_sync_fields", $this->sync_fields ); -
apply_filters( "nsl_{$this->getId()}default_last_location_redirect", $redirect_to, $requested_redirect_to ); -
apply_filters( "nsl_{$this->getId()}last_location_redirect", $redirect_to, $requested_redirect_to ); -
apply_filters( "nsl_{$this->provider->getId()}_auto_link_allowed", true, $this->provider, $user_id ); -
do_action( "nsl_{$this->provider->getId()}_before_register" ); -
apply_filters( "nsl_{$this->provider->getId()}_is_login_allowed", true, $this->provider, $user_id ); -
do_action( "nsl_{$this->provider->getId()}_login", $this->user_id, $this->provider, $this->data ); -
do_action( "nsl_{$this->provider->getId()}_register_new_user", $user_id, $this->provider ); -
nsl_add_providers
actiondo_action( 'nsl_add_providers' ); -
apply_filters( 'nsl_already_linked_error_message', sprintf(__('We found a user with your %1$s email address. Unfortunately, it belongs to a different account, so we are unable to log you in. Please use the linked account or log in with your password!', 'nextend-facebook-connect'), $this->provider->getLabel()) ); -
apply_filters( 'nsl_auto_link_error_message_email_not_verified', sprintf(__('We found a user with your %1$s email address but it looks like its email address is not verified.%2$sPlease login to your existing account using your password and link your %1$s account to it manually!', 'nextend-facebook-connect'), $this->provider->getLabel(), '<br>') ); -
apply_filters( 'nsl_autolink_error_redirect_url', $nslLoginUrl ); -
nsl_autologin_priority
filterapply_filters( 'nsl_autologin_priority', 40 ); -
nsl_avatar_store
filterapply_filters( 'nsl_avatar_store', NextendSocialLogin::$settings->get('avatar_store'), $user_id, $this ); -
nsl_before_register
actiondo_action( 'nsl_before_register', $this->provider ); -
nsl_before_wp_login
actiondo_action( 'nsl_before_wp_login' ); -
apply_filters( 'nsl_bp_social_accounts_tab_slug', 'social' ); -
nsl_bypass_cache_url
filterapply_filters( 'nsl_bypass_cache_url', $url ); -
apply_filters( 'nsl_connect_button_custom_attributes', $customLinkAttributes, $this ); -
apply_filters( 'nsl_disabled_login_error_message', '' ); -
apply_filters( 'nsl_disabled_register_error_message', '' ); -
apply_filters( 'nsl_facebook_sync_node_fields', array(), 'me' ); -
apply_filters( "nsl_finalize_settings_{$optionKey}", $this->settings['stored'] ); -
apply_filters( "nsl_finalize_settings_{$this->optionKey}", $this->settings['stored'] ); -
nsl_get_template_part
filterapply_filters( 'nsl_get_template_part', $templates, $file_name, $name ); -
apply_filters( 'nsl_getting_started_guide_url', $provider->getDocURL() . '#configuration' ); -
nsl_init
actiondo_action( 'nsl_init' ); -
nsl_is_register_allowed
filterapply_filters( 'nsl_is_register_allowed', true, $this->provider ); -
apply_filters( 'nsl_link_button_custom_attributes', $customLinkAttributes, $this ); -
nsl_login
actiondo_action( 'nsl_login', $this->user_id, $this->provider ); -
nsl_persistent_expiration
filterapply_filters( 'nsl_persistent_expiration', HOUR_IN_SECONDS ); -
nsl_provider_init
actiondo_action( 'nsl_provider_init', $this ); -
nsl_providers_loaded
actiondo_action( 'nsl_providers_loaded' ); -
nsl_register_flow_page
filterapply_filters( 'nsl_register_flow_page', intval(self::$settings->get('register-flow-page')) ); -
nsl_register_new_user
actiondo_action( 'nsl_register_new_user', $user_id, $this->provider ); -
nsl_registration_form_end
actiondo_action( 'nsl_registration_form_end', $this->userData, $this->provider ); -
nsl_registration_form_start
actiondo_action( 'nsl_registration_form_start', $this->userData, $this->provider ); -
apply_filters( 'nsl_registration_require_extra_input', false, $this->userData ); -
do_action( 'nsl_registration_store_extra_input', $user_id, $this->userExtraData ); -
nsl_registration_user_data
filterapply_filters( 'nsl_registration_user_data', $this->userData, $this->provider, $this->errors ); -
apply_filters( 'nsl_registration_validate_extra_input', $this->userData, $this->errors ); -
nsl_required_capability
filterapply_filters( 'nsl_required_capability', 'manage_options' ); -
apply_filters( 'nsl_session_cookie_expiration', 0 ); -
nsl_session_name
filterapply_filters( 'nsl_session_name', $this->sessionName ); -
nsl_start
actiondo_action( 'nsl_start' ); -
nsl_twitter_sync_node_fields
filterapply_filters( 'nsl_twitter_sync_node_fields', array(), 'mev2' ); -
apply_filters( 'nsl_unlink_button_custom_attributes', $customLinkAttributes, $this ); -
nsl_unlink_user
actiondo_action( 'nsl_unlink_user', $user_info->ID, $this->getId(), $unlinkedIdentifier ); -
nsl_update_avatar
actiondo_action( 'nsl_update_avatar', $this, $user_id, $url ); -
apply_filters( "nsl_update_settings_validate_{$this->optionKey}", $newData, $postedData ); -
register_new_user
actiondo_action( 'register_new_user', $user_id ); -
register_post
actiondo_action( 'register_post', $userData['username'], $userData['email'], $errors ); -
secure_signon_cookie
filterapply_filters( 'secure_signon_cookie', $secure_cookie, array() ); -
um_user_register
actiondo_action( 'um_user_register', $user_id, $um_registration_args, $um_registration_form_data ); -
widget_title
filterapply_filters( 'widget_title', $title, $instance, $this->id_base ); -
wp_login
actiondo_action( 'wp_login', $user_info->user_login, $user_info ); -
wp_safe_redirect_fallback
filterapply_filters( 'wp_safe_redirect_fallback', admin_url(), 302 );
Generated from Nextend Social Login and Register'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: