Nextend Social Login and Register icon
Social Media

Nextend Social Login and Register hooks reference

  • By Nextendweb
  • v3.1.27 New
  • Updated

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.

functions.phpyour child theme
// 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
    includes/compat-wp-login.php line 263 · used in 3 places
    /**
     * Filters the error messages displayed above the login form.
     */
    apply_filters( 'login_errors', $errors );
  • includes/compat-wp-login.php line 274 · used in 3 places
    /**
     * Filters instructional messages displayed above the login form.
     */
    apply_filters( 'login_messages', $messages );
  • includes/compat-wp-login.php line 206
    /**
     * Filters the login page body classes.
     */
    apply_filters( 'login_body_class', $classes, $action );
  • includes/compat-wp-login.php line 123
    /**
     * Enqueue scripts and styles for the login page.
     */
    do_action( 'login_enqueue_scripts' );
  • login_head

    action
    includes/compat-wp-login.php line 130
    /**
     * Fires in the login page header after scripts are enqueued.
     */
    do_action( 'login_head' );
  • login_header

    action
    includes/compat-wp-login.php line 217
    /**
     * Fires in the login page header after the body tag is opened.
     */
    do_action( 'login_header' );
  • includes/compat-wp-login.php line 178
    /**
     * Filters the link text of the header logo above the login form.
     */
    apply_filters( 'login_headertext', $login_header_text );
  • includes/compat-wp-login.php line 158
    /**
     * Filters the title attribute of the header logo above login form.
     */
    apply_filters( 'login_headertitle', $login_header_title );
  • includes/compat-wp-login.php line 148
    /**
     * Filters link URL of the header logo above login form.
     */
    apply_filters( 'login_headerurl', $login_header_url );
  • login_message

    filter
    includes/compat-wp-login.php line 235
    /**
     * Filters the message to display above the login form.
     */
    apply_filters( 'login_message', $message );
  • login_title

    filter
    includes/compat-wp-login.php line 81
    /**
     * Filters the title tag content for login page.
     */
    apply_filters( 'login_title', $login_title, $title );
  • includes/provider.php line 1114
    /**
     * 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 );
  • includes/provider.php line 1122
    /**
     * 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 );
  • includes/user.php line 123
    /**
     * 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 );
  • includes/user.php line 311
    /**
     * Preregister, checks what roles shall be informed about the registration and
     * sends a notification to them.
     */
    do_action( 'nsl_pre_register_new_user', $this );
  • NSL/GDPR.php line 54
    /**
     * 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') );
  • NSL/GDPR.php line 64
    /**
     * 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') );
  • includes/provider.php line 180
    /**
     * 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 );
  • includes/user.php line 414
    /**
     * 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 );
  • includes/compat-wp-login.php line 63
    /**
     * Filters the error codes array for shaking the login form.
     */
    apply_filters( 'shake_error_codes', $shake_error_codes );
  • includes/user.php line 573
    /**
     * Other plugins use this hook to prevent log in
     */
    apply_filters( 'wp_authenticate_user', $user, '' );
  • nsl-pro

    filter
    admin/admin.php line 677 · used in 6 places
    apply_filters( 'nsl-pro', false );
  • includes/provider.php line 333 · used in 4 places
    apply_filters( 'nsl_disabled_login_redirect_url', NextendSocialLogin::getLoginUrl() );
  • includes/provider-oauth.php line 176 · used in 3 places
    do_action( "{$this->id}_login_action_get_user_profile", $data );
  • includes/user.php line 562 · used in 3 places
    do_action( 'wp_login_failed', $user->get('user_login'), $userOrError );
  • includes/provider-oauth.php line 134 · used in 2 places
    do_action( "{$this->id}_login_action_redirect", $this );
  • includes/provider.php line 933 · used in 2 places
    apply_filters( "{$this->id}_login_redirect_url", $fixedRedirect, $this );
  • includes/provider.php line 926 · used in 2 places
    apply_filters( "{$this->id}_register_redirect_url", $fixedRedirect, $this );
  • includes/provider-oauth.php line 221 · used in 2 places
    do_action( "nsl_{$this->getId()}_login", $user_id, $this, $authOptions );
  • includes/provider-oauth.php line 227 · used in 2 places
    do_action( "nsl_{$this->getId()}_register_new_user", $user_id, $this );
  • includes/oauth2.php line 113 · used in 2 places
    apply_filters( "nsl_{$this->providerID}_auth_url_args", $args );
  • includes/oauth2.php line 104 · used in 2 places
    apply_filters( "nsl_{$this->providerID}_scopes", $this->scopes );
  • includes/userData.php line 101 · used in 2 places
    apply_filters( 'nsl_disabled_register_redirect_url', NextendSocialLogin::getLoginUrl() );
  • providers/google/google.php line 217 · used in 2 places
    apply_filters( 'nsl_google_sync_node_fields', array(), 'me' );
  • admin/admin.php line 933 · used in 2 places
    apply_filters( 'wpml_object_id', $proxyPage, 'page', false, $lang['code'] );
  • includes/provider.php line 998
    apply_filters( "{$this->id}_default_[login_redirect_url", $defaultRedirect, $this );
  • includes/provider.php line 994
    apply_filters( "{$this->id}_default_register_redirect_url", $defaultRedirect, $this );
  • includes/provider.php line 338
    do_action( "{$this->id}_login_action_before", $this );
  • authenticate

    filter
    includes/user.php line 559
    apply_filters( 'authenticate', $user, $user->get('user_login'), '' );
  • nextend-social-login.php line 1484
    apply_filters( 'bp_core_template_plugin', 'members/single/plugins' );
  • nextend-social-login.php line 1563
    apply_filters( 'display_post_states', array(), $page );
  • nextend-social-login.php line 1365
    do_action( "get_template_part_{$file_name}", $file_name, $name );
  • includes/avatar.php line 253
    apply_filters( 'getimagesize_mimes_to_exts', array( 'image/jpeg' => 'jpg', 'image/png' => 'png', 'image/gif' => 'gif', 'image/bmp' => 'bmp', 'image/tiff' => 'tif', 'image/webp' => 'webp' ) );
  • includes/user.php line 712
    apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, wp_get_current_user() );
  • admin/templates-provider/sync-data-pro.php line 34
    apply_filters( "nsl_{$provider->getId()}_sync_warning", false );
  • includes/provider.php line 191
    do_action( "nsl_{$this->getId()}_enabled" );
  • includes/provider.php line 53
    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' ) ) );
  • includes/provider.php line 51
    apply_filters( "nsl_{$this->getId()}_sync_fields", $this->sync_fields );
  • includes/provider.php line 1006
    apply_filters( "nsl_{$this->getId()}default_last_location_redirect", $redirect_to, $requested_redirect_to );
  • includes/provider.php line 1015
    apply_filters( "nsl_{$this->getId()}last_location_redirect", $redirect_to, $requested_redirect_to );
  • includes/user.php line 265
    do_action( "nsl_{$this->provider->getId()}_before_register" );
  • includes/user.php line 588
    apply_filters( "nsl_{$this->provider->getId()}_is_login_allowed", true, $this->provider, $user_id );
  • includes/user.php line 671
    do_action( "nsl_{$this->provider->getId()}_login", $this->user_id, $this->provider, $this->data );
  • includes/user.php line 479
    do_action( "nsl_{$this->provider->getId()}_register_new_user", $user_id, $this->provider );
  • nextend-social-login.php line 344
    do_action( 'nsl_add_providers' );
  • includes/user.php line 724
    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()) );
  • includes/user.php line 361
    apply_filters( 'nsl_autologin_priority', 40 );
  • includes/provider.php line 1295
    apply_filters( 'nsl_avatar_store', NextendSocialLogin::$settings->get('avatar_store'), $user_id, $this );
  • includes/user.php line 263
    do_action( 'nsl_before_register', $this->provider );
  • includes/user.php line 622
    do_action( 'nsl_before_wp_login' );
  • nextend-social-login.php line 1460
    apply_filters( 'nsl_bp_social_accounts_tab_slug', 'social' );
  • nextend-social-login.php line 1691
    apply_filters( 'nsl_bypass_cache_url', $url );
  • includes/provider.php line 689
    apply_filters( 'nsl_connect_button_custom_attributes', $customLinkAttributes, $this );
  • includes/user.php line 638
    apply_filters( 'nsl_disabled_login_error_message', '' );
  • includes/user.php line 132
    apply_filters( 'nsl_disabled_register_error_message', '' );
  • providers/facebook/facebook.php line 240
    apply_filters( 'nsl_facebook_sync_node_fields', array(), 'me' );
  • class-settings.php line 34
    apply_filters( "nsl_finalize_settings_{$optionKey}", $this->settings['stored'] );
  • class-settings.php line 91
    apply_filters( "nsl_finalize_settings_{$this->optionKey}", $this->settings['stored'] );
  • nextend-social-login.php line 1372
    apply_filters( 'nsl_get_template_part', $templates, $file_name, $name );
  • admin/templates-provider/getting-started-head.php line 7
    apply_filters( 'nsl_getting_started_guide_url', $provider->getDocURL() . '#configuration' );
  • nsl_init

    action
    nextend-social-login.php line 464
    do_action( 'nsl_init' );
  • includes/user.php line 126
    apply_filters( 'nsl_is_register_allowed', true, $this->provider );
  • nsl_login

    action
    includes/user.php line 670
    do_action( 'nsl_login', $this->user_id, $this->provider );
  • NSL/Persistent/Storage/Abstract.php line 59
    apply_filters( 'nsl_persistent_expiration', HOUR_IN_SECONDS );
  • includes/provider.php line 49
    do_action( 'nsl_provider_init', $this );
  • nextend-social-login.php line 351
    do_action( 'nsl_providers_loaded' );
  • nextend-social-login.php line 1532
    apply_filters( 'nsl_register_flow_page', intval(self::$settings->get('register-flow-page')) );
  • includes/user.php line 478
    do_action( 'nsl_register_new_user', $user_id, $this->provider );
  • includes/userData.php line 278
    do_action( 'nsl_registration_form_end', $this->userData, $this->provider );
  • includes/userData.php line 276
    do_action( 'nsl_registration_form_start', $this->userData, $this->provider );
  • includes/userData.php line 46
    apply_filters( 'nsl_registration_require_extra_input', false, $this->userData );
  • includes/user.php line 476
    do_action( 'nsl_registration_store_extra_input', $user_id, $this->userExtraData );
  • includes/userData.php line 93
    apply_filters( 'nsl_registration_user_data', $this->userData, $this->provider, $this->errors );
  • includes/userData.php line 82
    apply_filters( 'nsl_registration_validate_extra_input', $this->userData, $this->errors );
  • nextend-social-login.php line 31
    apply_filters( 'nsl_required_capability', 'manage_options' );
  • NSL/Persistent/Storage/Session.php line 27
    apply_filters( 'nsl_session_name', $this->sessionName );
  • nsl_start

    action
    nextend-social-login.php line 325
    do_action( 'nsl_start' );
  • providers/twitter/twitter.php line 293
    apply_filters( 'nsl_twitter_sync_node_fields', array(), 'mev2' );
  • includes/provider.php line 1299
    do_action( 'nsl_update_avatar', $this, $user_id, $url );
  • class-settings.php line 62
    apply_filters( "nsl_update_settings_validate_{$this->optionKey}", $newData, $postedData );
  • includes/user.php line 483
    do_action( 'register_new_user', $user_id );
  • register_post

    action
    includes/user.php line 336
    do_action( 'register_post', $userData['username'], $userData['email'], $errors );
  • includes/user.php line 520
    do_action( 'um_user_register', $user_id, $um_registration_args, $um_registration_form_data );
  • widget_title

    filter
    widget.php line 156
    apply_filters( 'widget_title', $title, $instance, $this->id_base );
  • wp_login

    action
    includes/user.php line 623
    do_action( 'wp_login', $user_info->user_login, $user_info );
  • includes/provider.php line 920
    apply_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: