Hi @richard0marlowe,
Glad you reached out!
While there isn’t a specific filter for modifying that message, you can try using the output buffering method to capture the login page’s output and modify it before it’s displayed.
For example, you can add this to your functions.php file:
function modify_solid_security_2fa_text() {
ob_start(function ($buffer) {
return str_replace(
'An Authentication Code has been sent to the email address associated with your account. Look for an email with',
'Your custom message here. Instead, please check your inbox for',
$buffer
);
});
}
add_action('login_head', 'modify_solid_security_2fa_text');
Note that this method can sometimes affect performance, so you’ll want to check if your site is prone to heavy traffic, although most times the overhead is minimal.
Hope this helps!