UsersWP 1.5.11 has 19 actions and 36 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 UsersWP fires an action
add_action( 'uwp_clear_user_php_session', function() {
// Your code runs here.
}, 10, 1 );
// Change a value UsersWP is about to use
add_filter( 'uwp_social_change_username', function( $value, $provider ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
do_action( 'uwp_clear_user_php_session' ); -
apply_filters( 'uwp_social_change_username', true, $provider ); -
apply_filters( 'uwp_social_linking_enabled', true, $provider ); -
apply_filters( 'uwp_social_login_button_html', $btn_output, strtolower( $provider_id ), $url ); -
apply_filters( 'uwp_social_login_button_url', $url, $provider_id, $args ); -
apply_filters( 'uwp_social_require_email', true, $provider ); -
apply_filters( 'uwp_get_available_social_providers', $providers ); -
apply_filters( "uwp_get_sections_{$this->id}", $sections ); -
apply_filters( "uwp_get_settings_{$this->id}", $settings, $current_section ); -
apply_filters( 'uwp_incorrect_email_error_msg', __( 'The email address isn’t correct.', 'uwp-social' ) ); -
apply_filters( 'uwp_new_users_gateway_alter_illegal_names', $illegal_names ); -
apply_filters( 'uwp_new_users_gateway_alter_profile_completion_errors', $profile_completion_errors ); -
apply_filters( 'uwp_new_users_gateway_alter_requested_email', $requested_user_email ); -
apply_filters( 'uwp_new_users_gateway_alter_requested_login', $requested_user_login ); -
do_action( 'uwp_require_admin_review', $user_id, array() ); -
apply_filters( 'uwp_social_action_priority', 10 ); -
apply_filters( 'uwp_social_admin_notification_content', $message, $user_id, $provider ); -
do_action( 'uwp_social_after_wp_insert_user', $user_id, $provider, $hybridauth_user_profile ); -
apply_filters( 'uwp_social_alter_wp_insert_user_data', $userdata, $provider, $hybridauth_user_profile ); -
do_action( 'uwp_social_authenticate_before_wp_safe_redirect', $user_id, $provider, $hybridauth_user_profile, $redirect_to ); -
do_action( 'uwp_social_authenticate_session' ); -
do_action( 'uwp_social_authenticate_start' ); -
do_action( 'uwp_social_authenticate_user_set_auth_cookie', $user_id, $provider, $hybridauth_user_profile ); -
do_action( 'uwp_social_authenticate_user_start', $user_id, $provider, $redirect_to, $adapter, $hybridauth_user_profile, $wp_user ); -
do_action( 'uwp_social_before_wp_insert_user', $userdata, $provider, $hybridauth_user_profile ); -
do_action( 'uwp_social_create_wp_user_start', $provider, $hybridauth_user_profile, $requested_user_login, $requested_user_email ); -
apply_filters( 'uwp_social_delegate_wp_insert_user', $user_id, $provider, $hybridauth_user_profile ); -
apply_filters( 'uwp_social_enable_avatar_update', true ); -
apply_filters( 'uwp_social_error_messages', $message, $e, $config, $provider, $adapter ); -
apply_filters( 'uwp_social_fa_icons', $icons, $provider, $args ); -
apply_filters( 'uwp_social_facebook_options', array( array( 'title' => __('Facebook Settings', 'uwp-social'), 'type' => 'title', 'id' => 'social_facebook_settings_options', 'desc' => sprintf(__('<b>Note:</b> Create API key and secret from %sDeveloper site%s and enter below. Use %s for Authorized redirect URI. See %s Documentation %s','uwp-social'), '<a href="https://developers.facebook.com/apps" target="_blank">', '</a>', '<span class="uwp... ); -
do_action( 'uwp_social_get_user_data_start', $provider, $redirect_to ); -
apply_filters( 'uwp_social_google_options', array( array( 'title' => __('Google Settings', 'uwp-social'), 'type' => 'title', 'id' => 'social_google_settings_options', 'desc' => sprintf(__('<b>Note:</b> Create API key and secret from %sDeveloper site%s and enter below. Use %s for Authorized redirect URI. See %s Documentation %s','uwp-social'), '<a href="https://console.developers.google.com" target="_blank">', '</a>', '<span class="uwp-cu... ); -
do_action( 'uwp_social_include_admin_files' ); -
do_action( 'uwp_social_include_files' ); -
apply_filters( 'uwp_social_linkedin_options', array( array( 'title' => __('Linkedin Settings', 'uwp-social'), 'type' => 'title', 'id' => 'social_linkedinopenid_settings_options', 'desc' => sprintf(__('<b>Note:</b> Create API key and secret from %sDeveloper site%s and enter below. Use %s for Authorized redirect URI. See %s Documentation %s','uwp-social'), '<a href="https://www.linkedin.com/developer/apps" target="_blank">', '</a>', '<span c... ); -
apply_filters( 'uwp_social_login_buttons_label', $title ); -
apply_filters( 'uwp_social_login_email_domain', $email_domain ); -
do_action( 'uwp_social_new_users_gateway_start', $provider, $redirect_to, $hybridauth_user_profile ); -
apply_filters( 'uwp_social_options', array( array( 'title' => __('Social Settings', 'uwp-social'), 'type' => 'title', 'desc' => sprintf(__('You can allow users to login via several social networks, once enabled the login icons will appear on most login forms and you can also use the UWP widget to add a social login buttons to widget areas. See %s Documentation %s','uwp-social'), '<a href="https://docs.userswp.io/category/350-socia... ); -
apply_filters( 'uwp_social_pre_user_first_name', $userdata['first_name'] ); -
apply_filters( 'uwp_social_pre_user_last_name', $userdata['last_name'] ); -
apply_filters( 'uwp_social_process_login_get_auth_mode', $auth_mode ); -
apply_filters( 'uwp_social_profiles_before_table_create', $social_profiles ); -
apply_filters( 'uwp_social_provider_config', $config["providers"][$provider], $provider ); -
apply_filters( 'uwp_social_provider_config_scope', $provider_scope, $provider ); -
do_action( 'uwp_social_render_error', $e, $config, $provider, $adapter ); -
do_action( 'uwp_social_render_notice_page_before', $args ); -
do_action( 'uwp_social_setup_actions' ); -
apply_filters( 'uwp_social_twitter_options', array( array( 'title' => __('X Settings', 'uwp-social'), 'type' => 'title', 'id' => 'social_twitter_settings_options', 'desc' => sprintf(__('<b>Note:</b> This uses X\'s OAuth 2.0 login. In your app\'s "User authentication settings" on the %sDeveloper site%s, enable OAuth 2.0 and add %s as the Callback URI / Redirect URL, then enter the app\'s OAuth 2.0 Client ID and Client Secret below (not the... ); -
apply_filters( 'uwp_social_uninstall_data', $options ); -
do_action( 'uwp_social_update_user_data_start', $is_new_user, $user_id, $provider, $adapter, $hybridauth_user_profile, $wp_user ); -
apply_filters( 'uwp_social_wordpress_options', array( array( 'title' => __('WordPress Settings', 'uwp-social'), 'type' => 'title', 'id' => 'social_wordpress_settings_options', 'desc' => sprintf(__('<b>Note:</b> Create API key and secret from %sDeveloper site%s and enter below. Use %s for Authorized redirect URI. See %s Documentation %s','uwp-social'), '<a href="https://developer.wordpress.com/apps/" target="_blank">', '</a>', '<span class="... ); -
apply_filters( 'uwp_social_yahoo_options', array( array( 'title' => __('Social Settings', 'uwp-social'), 'type' => 'title', 'id' => 'social_yahoo_settings_options', 'desc' => sprintf(__('<b>Note:</b> Create API key and secret from %sDeveloper site%s and enter below. Use %s for Authorized redirect URI. See %s Documentation %s','uwp-social'), '<a href="https://developer.yahoo.com/apps" target="_blank">', '</a>', '<span class="uwp-custom-d... ); -
do_action( 'wp_login', $user_login, $wp_user );
Generated from UsersWP'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: