Theme My Login 7.3.1 has 25 actions and 62 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 Theme My Login fires an action
add_action( 'login_enqueue_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Theme My Login is about to use
add_filter( 'add_signup_meta', function( $value ) {
// Change $value here.
return $value;
}, 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
-
add_signup_meta
filter/** * This filter is documented in wp-signup.php */ apply_filters( 'add_signup_meta', array() ); -
login_redirect
filter/** * This filter is documented in wp-login.php */ apply_filters( 'login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user ); -
login_enqueue_scripts
action/** * This action is documented in wp-login.php */ do_action( 'login_enqueue_scripts' ); -
login_form_{$action_name}
action/** * This action is documented in wp-login.php */ do_action( "login_form_{$action_name}" ); -
login_head
action/** * This action is documented in wp-login.php */ do_action( 'login_head' ); -
login_init
action/** * This action is documented in wp-login.php */ do_action( 'login_init' ); -
logout_redirect
filter/** * This filter is documented in wp-login.php */ apply_filters( 'logout_redirect', $redirect_to, $requested_redirect_to, $user ); -
lost_password
action/** * This filter is documented in wp-login.php */ do_action( 'lost_password', tml_get_errors() ); -
signup_another_blog_init
filter/** * This filter is documented in wp-signup.php */ apply_filters( 'signup_another_blog_init', compact( 'blogname', 'blog_title', 'errors' ) ); -
signup_blog_init
filter/** * This filter is documented in wp-signup.php */ apply_filters( 'signup_blog_init', compact( 'user_name', 'user_email', 'blogname', 'blog_title', 'errors' ) ); -
signup_create_blog_meta
filter/** * This filter is documented in wp-signup.php */ apply_filters( 'signup_create_blog_meta', $blog_meta_defaults ); -
/** * This filter is documented in wp-signup.php */ apply_filters( 'signup_get_available_languages', get_available_languages() ); -
signup_user_init
filter/** * This filter is documented in wp-signup.php */ apply_filters( 'signup_user_init', compact( 'user_name', 'user_email', 'errors' ) ); -
tml_action_{$action_name}
action/** * Fires when a TML action is being requested. */ do_action( "tml_action_{$action_name}" ); -
/** * Fires when a TML action is being requested. */ do_action( "tml_action_ajax_{$action_name}" ); -
tml_action_exists
filter/** * Filter whether an action exists or not. */ apply_filters( 'tml_action_exists', $exists, $action ); -
tml_activate
action/** * Fires when the plugin is being activated. */ do_action( 'tml_activate' ); -
tml_activate_{$slug}
action/** * Fires when the extension is being activated. */ do_action( "tml_activate_{$slug}" ); -
tml_activate_extension
action/** * Fires when an extension is being activated. */ do_action( 'tml_activate_extension', $this->get_name() ); -
/** * Filters the settings fields. */ apply_filters( 'tml_admin_get_settings_fields', $fields ); -
/** * Filters the settings sections. */ apply_filters( 'tml_admin_get_settings_sections', array( 'tml_settings_general' => array( 'title' => __( 'General', 'theme-my-login' ), 'callback' => '__return_null', 'page' => 'theme-my-login', ), 'tml_settings_login' => array( 'title' => __( 'Log In' ), 'callback' => '__return_null', 'page' => 'theme-my-login', ), 'tml_settings_registration' => array( 'title' => __( 'Registration', 'theme-my-login' ), 'callback' => 'tml_admin_setting_callbac... ); -
tml_admin_init
action/** * Fires when TML Admin has been initialized. */ do_action( 'tml_admin_init', $this ); -
tml_after_form
filter/** * Filter the content after the form. */ apply_filters( 'tml_after_form', $output, $this->name, $this ); -
tml_after_form_field
filter/** * Filter the content after the field. */ apply_filters( 'tml_after_form_field', $output, $this->form->get_name(), $this->name, $this ); -
tml_ajax_error_data
filter/** * Filters the AJAX error data. */ apply_filters( 'tml_ajax_error_data', $data ); -
tml_ajax_success_data
filter/** * Filters the AJAX success data. */ apply_filters( 'tml_ajax_success_data', $data ); -
tml_allow_auto_login
filter/** * Filter whether users should be logged in after registration or not. */ apply_filters( 'tml_allow_auto_login', $auto_login ); -
tml_allow_user_passwords
filter/** * Filter whether users can set their own password upon registration or not. */ apply_filters( 'tml_allow_user_passwords', $user_passwords ); -
tml_autofocus
filter/** * Filter whether to autofocus the primary field on TML forms. */ apply_filters( 'tml_autofocus', true ); -
tml_before_form
filter/** * Filter the content before the form. */ apply_filters( 'tml_before_form', $output, $this->name, $this ); -
tml_before_form_field
filter/** * Filter the content before the field. */ apply_filters( 'tml_before_form_field', $output, $this->form->get_name(), $this->name, $this ); -
tml_dashboard_links
filter/** * Filter the dashboard links. */ apply_filters( 'tml_dashboard_links', array_filter( array( 'site_admin' => current_user_can( 'edit_posts' ) ? array( 'title' => __( 'Site Admin' ), 'url' => admin_url(), ) : false, 'profile' => array( 'title' => __( 'Edit Profile' ), 'url' => admin_url( 'profile.php' ), ), 'logout' => array( 'title' => __( 'Log Out' ), 'url' => wp_logout_url(), ), ) ) ); -
tml_deactivate
action/** * Fires when the plugin is being deactivated. */ do_action( 'tml_deactivate' ); -
tml_deactivate_{$slug}
action/** * Fires when the extension is being deactivated. */ do_action( "tml_deactivate_{$slug}" ); -
tml_deactivate_extension
action/** * Fires when an extension is being deactivated. */ do_action( 'tml_deactivate_extension', $this->get_name() ); -
tml_extension_exists
filter/** * Filter whether an extension exists or not. */ apply_filters( 'tml_extension_exists', $exists, $extension ); -
tml_get_action_slug
filter/** * Filter the action slug. */ apply_filters( 'tml_get_action_slug', $this->slug, $this->get_name() ); -
tml_get_action_title
filter/** * Filter the action title. */ apply_filters( 'tml_get_action_title', $this->title, $this->get_name() ); -
tml_get_action_url
filter/** * Filter the action URL. */ apply_filters( 'tml_get_action_url', $url, $this->get_name(), $scheme, $network ); -
tml_get_form_action
filter/** * Filters the form action. */ apply_filters( 'tml_get_form_action', $this->action, $this ); -
tml_get_form_field_content
filter/** * Filters the form field content. */ apply_filters( 'tml_get_form_field_content', $content, $this ); -
/** * Filters the form field description. */ apply_filters( 'tml_get_form_field_description', $this->description, $this ); -
tml_get_form_field_label
filter/** * Filters the form field label. */ apply_filters( 'tml_get_form_field_label', $this->label, $this ); -
tml_get_form_field_options
filter/** * Filters the form field options. */ apply_filters( 'tml_get_form_field_options', $this->options, $this ); -
tml_get_form_links
filter/** * Filter the form links. */ apply_filters( 'tml_get_form_links', $this->links, $this ); -
tml_get_form_method
filter/** * Filters the form method. */ apply_filters( 'tml_get_form_method', $this->method, $this ); -
tml_get_login_type
filter/** * Filter the login type. */ apply_filters( 'tml_get_login_type', $login_type ); -
tml_get_registration_type
filter/** * Filter the registration type. */ apply_filters( 'tml_get_registration_type', $registration_type ); -
tml_init
action/** * Fires when TML has been initialized. */ do_action( 'tml_init', $this ); -
tml_is_action
filter/** * Filter whether a TML action is being requested or not. */ apply_filters( 'tml_is_action', $is_action, $action ); -
tml_ms_activation_redirect
filter/** * Filters the URL to redirect to after activation. */ apply_filters( 'tml_ms_activation_redirect', $activation_redirect, $result['user_id'], isset( $result['blog_id'] ) ? $result['blog_id'] : null ); -
tml_page_templates
filter/** * Filters the template hierarchy used for TML pages. */ apply_filters( 'tml_page_templates', $templates ); -
/** * Filter whether to redirect subsite signup to network signup or not. */ apply_filters( 'tml_redirect_subsite_to_network_signup', true ); -
tml_registered_action
action/** * Fires after registering an action. */ do_action( 'tml_registered_action', $action->get_name(), $action ); -
tml_registered_extension
action/** * Fires after registering an extension. */ do_action( 'tml_registered_extension', $extension->get_name(), $extension ); -
tml_registered_form
action/** * Fires after registering a form. */ do_action( 'tml_registered_form', $form->get_name(), $form ); -
tml_registration_redirect
filter/** * Filter the registration redirect. */ apply_filters( 'tml_registration_redirect', $redirect_to, get_userdata( $user_id ) ); -
tml_render_form
action/** * Fires before rendering a form. */ do_action( 'tml_render_form', $this->name, $this ); -
tml_render_form_field
action/** * Fires before a form field is rendered. */ do_action( 'tml_render_form_field', $this->form->get_name(), $this->name, $this ); -
tml_script_data
filter/** * Filter the main TML script data. */ apply_filters( 'tml_script_data', array( 'action' => tml_is_action() ? tml_get_action()->get_name() : '', 'errors' => tml_get_errors()->get_error_codes(), 'autofocus' => $autofocus, 'showPasswordLabel' => __( 'Show password' ), 'hidePasswordLabel' => __( 'Hide password' ), 'ajaxErrorMessage' => __( 'An error occurred while processing your request. Please try again later.' ), ) ); -
tml_script_dependencies
filter/** * Filter the dependencies of the main TML script. */ apply_filters( 'tml_script_dependencies', $dependencies ); -
/** * Filters whether to send the new user admin notification or not. */ apply_filters( 'tml_send_new_user_admin_notification', true ); -
/** * Filters whether to send the new user notification or not. */ apply_filters( 'tml_send_new_user_notification', true ); -
tml_shortcode
filter/** * Filter the shortcode content. */ apply_filters( 'tml_shortcode', $content, $action->get_name(), $atts ); -
tml_show_widget
filter/** * Filters whether to show the widget or not. */ apply_filters( 'tml_show_widget', $show_widget, $instance ); -
tml_use_ajax
filter/** * Filter whether forms should use AJAX or not. */ apply_filters( 'tml_use_ajax', $use_ajax ); -
tml_use_permalinks
filter/** * Filter whether to use permalinks or not. */ apply_filters( 'tml_use_permalinks', $use_permalinks ); -
tml_widget_avatar_size
filter/** * Filters the size of the avatar shwon in the widget when logged in. */ apply_filters( 'tml_widget_avatar_size', 64 ); -
tml_widget_user_links
filter/** * Filters the links shown in the widget when logged in. */ apply_filters( 'tml_widget_user_links', array_filter( array( 'site_admin' => current_user_can( 'edit_posts' ) ? array( 'title' => __( 'Site Admin' ), 'url' => admin_url(), ) : false, 'dashboard' => array( 'title' => __( 'Dashboard' ), 'url' => tml_get_action_url( 'dashboard' ), ), 'profile' => array( 'title' => __( 'Edit Profile' ), 'url' => admin_url( 'profile.php' ), ), 'logout' => array( 'title' => __( 'Log Out' ), 'url' => wp_log... ); -
tml_widget_user_panel
action/** * Fires at the end of the logged in widget. */ do_action( 'tml_widget_user_panel', $instance ); -
/** * This action is documented in wp-login.php */ do_action( 'user_request_action_confirmed', $request_id ); -
validate_password_reset
action/** * This action is documented in wp-login.php */ do_action( 'validate_password_reset', $errors, $user ); -
whitelist_options
filter/** * This filter is documented in wp-admin/options.php */ apply_filters( 'whitelist_options', array() ); -
wp_login_errors
filter/** * This filter is documented in wp-login.php */ apply_filters( 'wp_login_errors', $errors, $redirect_to ); -
wp_safe_redirect_fallback
filter/** * This filter is documented in wp-includes/pluggable.php */ apply_filters( 'wp_safe_redirect_fallback', admin_url(), 302 ); -
wp_signup_location
filter/** * This filter is documented in wp-login.php */ apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); -
wpmu_active_signup
filter/** * This filter is documented in wp-signup.php */ apply_filters( 'wpmu_active_signup', get_site_option( 'registration', 'none' ) ); -
preprocess_signup_form
actiondo_action( 'preprocess_signup_form' ); -
allowed_options
filterapply_filters( 'allowed_options', $whitelist_options ); -
login_errors
filterapply_filters( 'login_errors', implode( "</li>\n<li class=\"tml-error\">", $errors ) ); -
login_messages
filterapply_filters( 'login_messages', implode( "</li>\n<li class=\"tml-message\">", $messages ) ); -
lostpassword_redirect
filterapply_filters( 'lostpassword_redirect', tml_get_request_value( 'redirect_to' ) ); -
registration_redirect
filterapply_filters( 'registration_redirect', tml_get_request_value( 'redirect_to' ) ); -
tml_form_exists
filterapply_filters( 'tml_form_exists', array_key_exists( $form, tml_get_forms() ) ); -
tml_get_username_label
filterapply_filters( 'tml_get_username_label', $label, $action ); -
widget_title
filterapply_filters( 'widget_title', $title, $instance, $this->id_base );
Generated from Theme My Login'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: