Kejatz
Forum Replies Created
-
It just redirects the entire site to 127.0.0.1, except the login page.
Also, I’ve tested the login lockout feature and “Unlock Request” button doesn’t appear after I’ve been locked out. I use hCaptcha on the login form, maybe that has something to do with it.
I was asking about the “Site Lockout Notification” but it would be great if we could also edit the “Unlock request notification”.
But I didn’t understand exactly what you said. Is there a way to customize them or not?
You successfully advised me on how to change the content of the user-approved email notification with
add_filter
for the:aiowps_register_approval_email_subject
aiowps_register_approval_email_msg
Can you give me the code to change the subject and body of the email notification that is sent for the “User login lockout”?
Can you please look into why this is happening?
Thank you.
Thank you!
Thank you. I did it even better.
function aios_user_account_approved_email_subject($old_subject) { return 'Your Account Is Approved'; } function aios_user_account_approved_email_body($old_message, $user) { return "Congratulations {$user->user_login}, your account is approved. Please feel free to partake in the magic that is our site. :)"; } add_filter ( 'aiowps_register_approval_email_subject', 'aios_user_account_approved_email_subject', 10, 1 ); add_filter ( 'aiowps_register_approval_email_msg', 'aios_user_account_approved_email_body', 10, 2 );
Hi,
I’m using the following code and it works except it won’t parse the <br> tag in the body of the email. I also tried \n, \r\n, and %0D%0A. Do you have an idea how I can add a line break that can be parsed?
function aios_user_account_approved_email_subject($old_subject) { return 'Your Account is Approved'; } function aios_user_account_approved_email_body($old_message, $user) { return 'Hi '.$user->user_login.',<br>your account is approved.'; } add_filter ( 'aiowps_register_approval_email_subject', 'aios_user_account_approved_email_subject', 10, 1 ); add_filter ( 'aiowps_register_approval_email_msg', 'aios_user_account_approved_email_body', 10, 2 );
Here is how it looks in the body of the mail:
“Hi user,<br>your account is approved.”
- This reply was modified 1 year, 3 months ago by Kejatz.
I wasn’t asking that. I want to be able to send a test email to specified recipients without triggering the notification.
For example, for me to test whether a new user registration notification works I need to create a new user in order to trigger it. It would be far better to be able to check the notification without triggering it.
I tried deactivating all other plugins but the behaviour is the same. Also, I tried to see the notification in the debug log but it was not present.
Thank you, I’ll try that. Is there a way to send out test emails just to check how the notifications are working?
Thank you so much for your time!
Great, thank you!
Why not cover all default WP email notifications by adding “request admin email change” and “admin email changed”?
For consistency…
BTW, I really think you should add the option of choosing the site admin with the rest of the roles/users in the dropdown menu for notification recipients.