LoginPress 6.2.5 has 27 actions and 68 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 LoginPress fires an action
add_action( 'login_enqueue_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value LoginPress is about to use
add_filter( 'loginpress_disable_default_style', 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 functionality of disabling the templates of LoginPress. */ apply_filters( 'loginpress_disable_default_style', false ); -
/** * $filter_role Use filter `loginpress_exclude_role_session` for return the * role. By default it's false and $expiration time will apply on all user. */ apply_filters( 'loginpress_exclude_role_session', false ); -
register
filter/** * This filter is documented in wp-includes/general-template.php */ apply_filters( 'register', $registration_url ); -
login_body_class
filter/** * Filters the login page body classes. */ apply_filters( 'login_body_class', $classes, $action ); -
/** * Filters whether to display the Language selector on the login screen. */ apply_filters( 'login_display_language_dropdown', true ); -
login_enqueue_scripts
action/** * Enqueue scripts and styles for the login page. */ do_action( 'login_enqueue_scripts' ); -
login_errors
filter/** * Filters the error messages displayed above the login form. */ apply_filters( 'login_errors', $errors ); -
login_form
action/** * Fires following the 'Password' field in the login form. */ do_action( 'login_form' ); -
/** * Fires before a specified login form action. */ do_action( "login_form_{$loginpress_login_action}" ); -
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_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_init
action/** * Fires when the login form is initialized. */ do_action( 'login_init' ); -
login_language_dropdown_args
filter/** * Filters default arguments for the Languages select input on the login * screen. */ apply_filters( 'login_language_dropdown_args', $args ); -
login_link_separator
filter/** * Filters the separator used between login form navigation links. */ apply_filters( 'login_link_separator', ' | ' ); -
login_message
filter/** * Filters the message to display above the login form. */ apply_filters( 'login_message', $message ); -
login_messages
filter/** * Filters instructional messages displayed above the login form. */ apply_filters( 'login_messages', $messages ); -
login_site_html_link
filter/** * Filters the "Go to site" link displayed in the login page footer. */ apply_filters( 'login_site_html_link', $html_link ); -
login_title
filter/** * Filters the title tag content for login page. */ apply_filters( 'login_title', $login_title, $title ); -
loginpress_autologin_script
action/** * Add Autologin Addon Action Hook. */ do_action( 'loginpress_autologin_script' ); -
loginpress_excluded_addons
filter/** * Filter to exclude certain addons from the Addons page. */ apply_filters( 'loginpress_excluded_addons', array() ); -
/** * Filters the purchase / pricing URL in the license sticky notice. */ apply_filters( 'loginpress_license_sticky_purchase_url', 'https://loginpress.pro/pricing/?utm_source=loginpress-pro&utm_medium=license-sticky-notice&utm_campaign=pro-upgrade&utm_content=Purchase+New+License' ); -
/** * Add Limit Login Attempts Addon Action Hook. */ do_action( 'loginpress_limit_login_attempts_log_script' ); -
/** * Filter for changing the lost password URL of lifter LMS plugin to default * Lost Password URL of WordPress. By using this filter, you can prevent the * redirection of lost password to Lifter LMS's lost password page over lost * password link. */ apply_filters( 'loginpress_llms_lostpassword_url', false ); -
/** * Add Login Redirects Addon Action Hook. */ do_action( 'loginpress_login_redirect_script' ); -
/** * Add Register Custom Fields Addon Action Hook. */ do_action( 'loginpress_register_fields_script' ); -
/** * Filter the maximum session expiration time in minutes. */ apply_filters( 'loginpress_session_expiration_max', 43200 ); -
/** * Add Social Login Addon Action Hook. */ do_action( 'loginpress_social_login_help_tab_script' ); -
loginpress_upgrade_link
filter/** * Filter the upgrade link. */ apply_filters( 'loginpress_upgrade_link', $upgrade ); -
/** * Filter the upgrade link medium parameter. */ apply_filters( 'loginpress_upgrade_link_medium', $medium ); -
lost_password
action/** * Fires before the lost password form. */ do_action( 'lost_password' ); -
lostpassword_form
action/** * Fires inside the lostpassword form tags, before the hidden fields. */ do_action( 'lostpassword_form' ); -
register_form
action/** * Fires following the 'Email' field in the user registration form. */ do_action( 'register_form' ); -
registration_redirect
filter/** * Filters the registration redirect URL. */ apply_filters( 'registration_redirect', $loginpress_registration_redirect ); -
wp_signup_location
filter/** * Filters the Multisite sign up URL. */ apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); -
/** * Filter allowed SDK opt-out setting keys for AJAX toggles. */ apply_filters( 'wpb_sdk_allowed_opt_out_settings', $allowed, $this->slug ); -
wpb_sdk_api_endpoint
filter/** * Filter telemetry API base URL for a product. */ apply_filters( 'wpb_sdk_api_endpoint', $endpoint, $slug ); -
wpb_sdk_custom_optin_slugs
filter/** * Filter products that use a custom opt-in form instead of * wpb-sdk-optin-form.php. */ apply_filters( 'wpb_sdk_custom_optin_slugs', $custom, $slug ); -
/** * Filter slugs that manage their own Opt In/Out plugin row links (not the * SDK). */ apply_filters( 'wpb_sdk_legacy_opt_action_link_slugs', $legacy, $slug ); -
wpb_sdk_module_config
filter/** * Filter module config after SDK defaults are applied. */ apply_filters( 'wpb_sdk_module_config', $module ); -
wpb_sdk_optin_logo_url
filter/** * Last-resort logo URL when no bundled asset exists (e.g. plugins without * assets/images/). */ apply_filters( 'wpb_sdk_optin_logo_url', '', $module ); -
wpb_sdk_plugin_action_links
filter/** * Append product-specific plugin row links (Settings, etc.) after SDK * opt-in/out. */ apply_filters( 'wpb_sdk_plugin_action_links', $links, $this->slug, $this->module ); -
wpb_sdk_plugin_main_file
filter/** * Filter the resolved main plugin file before scanning active plugins. */ apply_filters( 'wpb_sdk_plugin_main_file', '', $slug ); -
/** * Whether the SDK should delete its options and user meta on uninstall. */ apply_filters( 'wpb_sdk_should_cleanup_on_uninstall', true, $slug ); -
/** * Filter whether visiting the opt-in page should redirect away. */ apply_filters( 'wpb_sdk_should_redirect_from_optin_page', 'yes' === $decision, $slug, $decision ); -
loginpress_default_bg
filterapply_filters( 'loginpress_default_bg', '' ); -
wp_wpb_sdk_after_uninstall
actiondo_action( 'wp_wpb_sdk_after_uninstall', $slug ); -
wpb_sdk_optin_redirect_url
filterapply_filters( 'wpb_sdk_optin_redirect_url', $url, $slug, $optin, $redirect_override ); -
loginpress_add_pro_theme
actiondo_action( 'loginpress_add_pro_theme', $selected_preset ); -
apply_filters( 'loginpress_lostpassword_form_background_image', $loginpress_forget_form_bg_img ); -
wpb_sdk_bootstrap_module
actiondo_action( 'wpb_sdk_bootstrap_module', $slug ); -
apply_filters( 'wpb_sdk_site_used_centralized_sdk_32', false, $slug, $module ); -
increase_force_time_limit
filterapply_filters( 'increase_force_time_limit', $days ); -
loginpress_autologin
filterapply_filters( 'loginpress_autologin', $args ); -
apply_filters( 'loginpress_body_after_background_image', $loginpress_background_img ); -
apply_filters( 'loginpress_body_background_image', $loginpress_background_img ); -
apply_filters( 'loginpress_change_reset_message', $default_message, $limit ); -
loginpress_create_page_id
filterapply_filters( 'loginpress_create_page_id', $loginpress_page_found, $slug, $page_content ); -
loginpress_create_pages
filterapply_filters( 'loginpress_create_pages', array( 'loginpress' => array( 'name' => _x( 'loginpress', 'Page slug', 'loginpress' ), 'title' => _x( 'LoginPress', 'Page title', 'loginpress' ), 'content' => $post_content, ), ) ); -
apply_filters( 'loginpress_display_custom_errors', true ); -
loginpress_form_logo
filterapply_filters( 'loginpress_form_logo', $loginpress_logo_img ); -
loginpress_hidelogin
filterapply_filters( 'loginpress_hidelogin', $args, $value ); -
do_action( 'loginpress_limit_login_attempts_blacklist_script' ); -
do_action( 'loginpress_limit_login_attempts_whitelist_script' ); -
apply_filters( 'loginpress_login_after_background_image', $loginpress_background_img ); -
apply_filters( 'loginpress_login_background_image', $loginpress_background_img ); -
apply_filters( 'loginpress_login_form_background_image', $loginpress_form_background_img ); -
loginpress_login_redirects
filterapply_filters( 'loginpress_login_redirects', $args ); -
apply_filters( 'loginpress_mobile_background_image', $loginpress_mobile_background ); -
apply_filters( 'loginpress_multisite_uninstallation_tool', false ); -
apply_filters( 'loginpress_password_reset_for_all', false ); -
apply_filters( 'loginpress_pro_add_background', $loginpress_free_background ); -
loginpress_pro_add_template
filterapply_filters( 'loginpress_pro_add_template', $loginpress_free_templates ); -
do_action( 'loginpress_pro_addon_activation', $plugin_slug ); -
loginpress_pro_settings
filterapply_filters( 'loginpress_pro_settings', $free_fields ); -
apply_filters( 'loginpress_random_background_timespan', 5 ); -
loginpress_register_fields
filterapply_filters( 'loginpress_register_fields', $args ); -
loginpress_settings_fields
filterapply_filters( 'loginpress_settings_fields', $settings_fields ); -
loginpress_settings_tab
filterapply_filters( 'loginpress_settings_tab', $loginpress_general_tab ); -
loginpress_username_label
filterapply_filters( 'loginpress_username_label', $translated_text ); -
do_action( 'loginpress_wpb53407382_loaded' ); -
lostpassword_redirect
filterapply_filters( 'lostpassword_redirect', $loginpress_lostpassword_redirect ); -
rn_http_request_timeout
filterapply_filters( 'rn_http_request_timeout', 5 ); -
rn_notice_caching_time
filterapply_filters( 'rn_notice_caching_time', $cache ); -
wpb_sdk_optin_verified
actiondo_action( 'wpb_sdk_optin_verified', $current_user, $module ); -
apply_filters( 'wpb_sdk_uninstall_option_names', $options, $slug ); -
apply_filters( 'wpb_sdk_uninstall_user_meta_keys', $user_meta, $slug ); -
do_action( "wsa_form_bottom_{$form['id']}", $form ); -
wsa_form_top_{$form['id']}
actiondo_action( "wsa_form_top_{$form['id']}", $form );
Generated from LoginPress'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: