• Resolved Jan

    (@jannetto96)


    Hi!

    We want to edit the text above login:

    “Welcome to SITE NAME. This site is accessible to approved users only. To be approved, you must first register.”

    Also we want to send an automatic email to approved users. Is it possible?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jannetto96,

    Thanks for using the plugin,

    You can modify the message using the filter hook.
    apply_filters( 'new_user_approve_welcome_message_default', $welcome );

    Also, our plugin sends an automatic email to the users once they approved.

    Thanks

    Thread Starter Jan

    (@jannetto96)

    Hi @wpexpertssupportteam
    Unfortunately i’am a new developer.
    How i can i edit using the filter hook?
    Could you please give me the entire code to insert in functions?

    Also how to edit the text inside the automatic email?

    Thank you!

    Hi @jannetto96,

    Sure, here is an example code for modifying messages on WP-admin page.

    add_filter('new_user_approve_welcome_message_default', function($message) {
    	$new_message = "";
    
    	$new_message .= "Hi Customer";
    	$new_message .= "\n\n";
    	$new_message .= "Your message";	
    	$new_message .= "\n\n";
    	$new_message .= "Thanks";
    	return $new_message;	
    }, 10, 1);

    You can modify the $new_message variable according to your message.

    Here $new_message .= “\n\n”; is for 2 lines space.

    Here is the code for modifying the approval email.

    add_filter('new_user_approve_approve_user_message_default', function($message) {
    	$new_message = "";
    
    	$new_message .= "Hi Customer";
    	$new_message .= "\n\n";
    	$new_message .= "Your message";	
    	$new_message .= "\n\n";
    	$new_message .= "Thanks";
    	return $new_message;	
    }, 10, 1);

    Also, the options for modifying the messages or emails are available in the premium version of the plugin.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Edit Text + Confirm email’ is closed to new replies.