Thanks for your contribution.
Use filter hooks.
/** ==================================================
* Filter for message with mail.
*
* @param string $message message.
* @param string $url url.
* @param string $exp_date_time expiration date and time.
*/
add_filter(
'magic_login_mail_message',
function( $message, $url, $exp_date_time ) {
$message = 'Your message';
return $message;
},
10,
3
);
Hi,
tried that, but it causes fatal error.
Is it possible to replace site title with page title in the login email?
kind regards
Natascha
@katsushi-kawamori , I tried to change the message and subject for the email, but it does not work.
The standard message is sent instead of my own.
This is the snippet I use, what am I doing wrong?
/** ==================================================
* Filter for message with mail.
*
* @param string $message message.
* @param string $url url.
* @param string $exp_date_time expiration date and time.
*/
add_filter('magic_login_mail_message', function( $message, $url, $exp_date_time ) {
$message = 'Hallo, log in via de QR code of deze link';
return $message;
}, 10, 3
);
/** ==================================================
* Filter for message with mail subject.
*
*/
add_filter( 'magic_login_mail_subject', function(){ return 'Login via de link of QR code'; }, 10, 1 );
@katsushi-kawamori can you help please? Tried the code in my previous post, but that does not do anything