Matoma Two-Factor Authentication 1.0.3 has 4 actions and 11 filters, read directly from its source code on Nov 19, 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 Matoma Two-Factor Authentication fires an action
add_action( 'login_enqueue_scripts', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Matoma Two-Factor Authentication is about to use
add_filter( 'login_body_class', function( $classes, $action ) {
// Change $classes here.
return $classes;
}, 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
-
/** * Filters the login page body classes. */ apply_filters( 'login_body_class', $classes, $action ); -
/** * Enqueue scripts and styles for the login page. */ do_action( 'login_enqueue_scripts' ); -
/** * Filters the error messages displayed above the login form. */ apply_filters( 'login_errors', $errors ); -
/** * Fires in the login page header after scripts are enqueued. */ do_action( 'login_head' ); -
/** * Fires in the login page header after the body tag is opened. */ do_action( 'login_header' ); -
/** * Filters the link text of the header logo above the login form. */ apply_filters( 'login_headertext', $login_header_text ); -
/** * Filters the title attribute of the header logo above login form. */ apply_filters_deprecated( 'login_headertitle', array( $login_header_title ), '5.2.0', 'login_headertext', __( 'Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead.' ) ); -
/** * Filters link URL of the header logo above login form. */ apply_filters( 'login_headerurl', $login_header_url ); -
/** * Filters the message to display above the login form. */ apply_filters( 'login_message', $message ); -
/** * Filters instructional messages displayed above the login form. */ apply_filters( 'login_messages', $messages ); -
/** * Filters the title tag content for login page. */ apply_filters( 'login_title', $login_title, $title ); -
/** * Filters the error codes array for shaking the login form. */ apply_filters( 'shake_error_codes', $shake_error_codes ); -
apply_filters( 'login_redirect', wp_sanitize_redirect($_REQUEST['redirect_to']), wp_sanitize_redirect($_REQUEST['redirect_to']), $wpUser ); -
apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
Generated from Matoma Two-Factor Authentication'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: