• Resolved Kejatz

    (@kejatz)


    I have “Enable manual approval of new registrations” on. But when a new user registers and is pending approval, the plugin doesn’t send an email or a notification about it in the WordPress dashboard. I have to regularly check if I have new users pending on the page of that option. This is just bad practice. Do you plan on including some sort of notification for this?

    Also, when a user registers the default WordPress “New user registration” email notification is not sent. Why does your plugin block this?

    1. On the “Enable manual approval of new registrations” page add a setting to get an email and/or WP dashboard notification about new user registrations.
    2. AIOS should not block the default new user registration notification. It should either send it immediately when a user registers or after a user is approved in AIOS.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    1. Thanks for your suggestion that On the “Enable manual approval of new registrations” page add a setting to get an email ( by admin) or WP dashboard notice about new user registrations need to approved. I will create internal ticket for this suggestion
    2. AIOS do not block the default user registration notification email to user to set password. https://snipboard.io/tsx6h3.jpg Let me know if you are referring some thing else here.
    Thread Starter Kejatz

    (@kejatz)

    Hi,

    thank you for the reply and you are right, it doesn’t block the default user registration notification email to user, I made a mistake.

    I have another question. Once the registered user in approved in AIOS, AIOS sends a confirmation mail to user with the following content:

    Subject: [site URL] Your account is now active
    Body: Your account with username: [username] is now active

    Is there a way to customize the content of this email? It would be nice to have a code snippet to customize this or maybe you can add a feature to set the subject and body of that notification inside the AIOS.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    Yes, you can modify content of email once registered user approved.

    You have to add_filter aiowps_register_approval_email_subject and aiowps_register_approval_email_msg as below code which changes the subject and message.

    $subject = apply_filters( 'aiowps_register_approval_email_subject', $subject );
    $email_msg = apply_filters( 'aiowps_register_approval_email_msg', $email_msg, $user ); //also pass the WP_User object

    Regards

    Thread Starter Kejatz

    (@kejatz)

    Can you please guide me on how to do this via code snippet using a plugin like WPCode?

    Also, if I write my own custom subject and body can I use shortcodes and what are they? For example for site URL, username, user email, site title, and similar.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    You can do it in theme funciton.php adding php code not the short code etc.. As an reference I have found below. If you are non technical person it will be hard for you and have to get help of developer.

    https://wordpress.stackexchange.com/questions/1251/customizing-the-subject-field-in-wordpress-notification-emails

    Regards

    Thread Starter Kejatz

    (@kejatz)

    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.
    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    Can you please use \n between double quotes ? As per below and cross check as the email is text plan format <br> do not woks.

    	return 'Hi ' . $user->user_login . ',' . "\n" . 'your account is approved.';
    

    Regards

    Thread Starter Kejatz

    (@kejatz)

    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 );
    Thread Starter Kejatz

    (@kejatz)

    @hjogiupdraftplus,

    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”?

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    Are you asking for “Site Lockout Notification” or “Unlock request notification” ?

    For both above email right now not possible as filter not applied and adding it subject and content can be changed.

    Thread Starter Kejatz

    (@kejatz)

    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?

    Thread Starter Kejatz

    (@kejatz)

    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.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    Right now it is not possible to change subject and content for “Site Lockout Notification” or “Unlock request notification”

    Allow unlock requests: is on make sure, And if it do not show allow unlock request what it does ?

    Regards

    Thread Starter Kejatz

    (@kejatz)

    It just redirects the entire site to 127.0.0.1, except the login page.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @kejatz

    Do you have 404 IP detection and lockout on please cross check and let me know .

    WP Security > firewall > 404 detection – Enable 404 IP detection and lockout:

    It might be the reason of the issue as per I check here.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Does “Enable manual approval of new registrations” notifies the admin?’ is closed to new replies.