If you deactivate the plugin, their status doesn't matter. The status that the plugin uses is only used by the plugin. All users will be allowed to login as long as they have their username and passwords.
Josh Harrison on "[Plugin: New User Approve] User status after deactivating plugin?"
63N on "[Plugin: New User Approve] Add more email adresses to get notifications, remove default address"
Firstly, great plugin!
Although, I assumed that any user with the 'Administrator' role would receive email notifications for new registration requests, but it seems only the 'Super Admin' gets the notifications? (Or maybe it's only the email set in Settings>General?)
In the Changelog under 1.5.3 it says:
add filter for adding more email addresses to get notifications
Could you give an example of how to use this filter to add more email address for notifications?
I have a child theme set up with a custom functions.php file to put the code in, I just need to know what to write!
Also, is it possible to only send notifications to those addresses and stop sending them to the default email address, because I set a site up for a client and I don't want to keep getting notification emails from their site.
Thanks in advance!
63N on "[Plugin: New User Approve] Add more email adresses to get notifications, remove default address"
I don't know php, but after looking at other posts, your files on gist and searching through the source code for a filter I put this together:
// send new registration notifications to additional email addresses
function additional_registration_notifications( $to ) {
$to = 'CUSTOM EMAIL ADDRESSES';
return $to;
}
// add new email address to the notification list
add_filter( 'new_user_approve_email_admins', 'additional_registration_notifications' );
But I get an error when I use this?
EDIT: the error after the registration form is submitted - Warning: array_unique() [function.array-unique]: The argument should be an array in...
MobiusMirage on "[Plugin: New User Approve] Add more email adresses to get notifications, remove default address"
I had the same problem. You were close, I had our web consultant look at it and found the following code to work. You will need to put this in the functions.php file.
// send new registration notifications to additional email addresses
function additional_registration_notifications( $to ) {
$to = array('email-1', 'email-2', 'email-3',...);
return $to;
}
add_filter( 'new_user_approve_email_admins', 'additional_registration_notifications' );
Hope this helps.
63N on "[Plugin: New User Approve] Add more email adresses to get notifications, remove default address"
Awesome, that seems to be working perfectly, and it overrides the default.
Thanks!
samguide on "[Plugin: New User Approve] New user approve in french ?"
Hello,
thank you for your excellent plugin !
can you tell me how to translate the messages and emails send by "new user approve" in french ?
i didn't found any topic to explain me that…
thank you for your answer !
Josh Harrison on "[Plugin: New User Approve] New user approve in french ?"
Take a look at http://codex.wordpress.org/Translating_WordPress. That provides some help on what you can do to help out.
I know that the plugin has been translated in French but is missing some major updates. I'm planning on making this a lot easier in the future.
Please let me know if you need more help.
remymedranda on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
I have an attachment that I would like to add to the email that gets sent out to approved users. Is there a way to make this possible?
Josh Harrison on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
You could definitely do this by overriding the current function that sends the approval email. Then add a parameter to define the attachment in the wp_mail function.
remymedranda on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
Josh,
How would I override the current function?
I searched the page you referenced for attachment and this was the example code it offered.
<?php
$attachments = array( WP_CONTENT_DIR . '/uploads/file_to_attach.zip' );
$headers = 'From: My Name <myname@example.com>' . "\r\n";
wp_mail('test@example.org', 'subject', 'message', $headers, $attachments );
?>
So what would be the proper code to add to my functions list that would override the current function?
remymedranda on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
I had someone give me a hand with this today, and was successful but they couldn't get it done adding the modifiers to the functions.php file instead they modified the plugin by adding the following code to new-user-approve/new-user-approve.php (not by my advice)
$attachments= array( WP_CONTENT_DIR . '/uploads/2014/09/Filling-out-the-Wholesale-Application.pdf' );
// send the mail
wp_mail( $user_email, $subject, $message, $this->email_message_headers(), $attachments );
This is not ideal, I know. So if you would be so kind, how would you suggest I (he) does this then?
remymedranda on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
Josh I've had my coding buddy help me out to add an attachment to the new user approve email, but he couldn't do it by adding the line to my functions.php, he had to add it the plugins main php files, so now everytime you release an upgrade it's messing up my attachments.
He can't figure out how to do it on the functions.php. Is there anyway you can build this functionality in, or just tell me the code I should add to my functions.php that can handle this attachment issue, so I don't have to ask this guy to constantly keep adding this line of code that gets stripped out every time there's an update.
Anup Biswas on "[Plugin: New User Approve] Fatal error: Call to undefined function login_header()"
Hello,
I have a custom ajax registration system. i want to use this plugin to approve new user. but i faced this problem.Fatal error: Call to undefined function login_header() in C:\wamp\www\ndc\wp-content\plugins\new-user-approve\new-user-approve.php on line <i>607</i>
remymedranda on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
Josh, would it be possible to develop a premium version of this plugin with features such as attachment abilities, and custom emails etc... all those goodies most of us ask you on here.
I've been asking my friend to develop an extension plugin to your plugin so that everytime you send out an update I don't have to ask him to keep adding the code for the attachment that gets sent out in our approval email.
This would be incredibly awesome if you got this done!
ronvil on "[Plugin: New User Approve] Cancel Registration"
Hi!
I have successfully edited the email message sent to people who register once their registration is approved.
I was wondering though if it is possible to add in the message an option for users to cancel their registration or delete their account?
thanks you and thanks for the awesome plugin.
Cheers,
ronvil
Josh Harrison on "[Plugin: New User Approve] Way to add an attachment to the Approval Email?"
Here are some instructions on how to do this using core filters. https://newuserapprove.com/support/faq/add-attachment-approval-email/
There is also more information on a premium version of the plugin at https://newuserapprove.com/products/options-addon/
Nathaniel T on "[Plugin: New User Approve] How to customize the approval message to the admin?"
I am using the plugin New User Approve to help moderate the registration of new users to our multi-user site. Right now the registration form is the default WP one with only a Username and Email field. I would like to require the new user to input a valid First and Last Name as well as a Username and Email address. Then I would like the notification email that New User Approve sends to the admin about the new registration to include the user's First and Last Name along with the given message. This is to help identify the people signing up as usernames and emails cannot be cross-referenced with people we want accessing the site.
There are filters available in the New User Approve plugin that are supposed to allow the modification of the email message sent to the admin (as well as those sent to the new user). However, I have not been able to get these to work successfully. An example being that when I try to override the message it sends a message with all the 'tags' intact, rather than swapping them for the actual data. This is the code I have tried:
/*
Customize the New User Approve email messages.
*/
add_action( 'nua_email_tags', 'mytheme2014_extras_nua_add_email_tags');
function mytheme2014_extras_nua_add_email_tags () {
if (! nua_email_tag_exists( 'first_last_name' )) {
nua_add_email_tag( 'first_last_name', __( 'The users first and last name.', 'mytheme2014' ), 'mytheme2014_extras_nua_email_tag_user_first_last_name' );
}
}
function mytheme2014_extras_nua_email_tag_user_first_last_name( $attributes ) {
return '' . $attributes['first_name'] . ' ' . $attributes['last_name'];
}
add_filter( 'new_user_approve_request_approval_message', 'mytheme2014_extras_nua_approval_notification_message', 10, 2 );
function mytheme2014_extras_nua_approval_notification_message($message, $user) {
$message = __( '{first_last_name} — {username} — ({user_email}) has requested a username at {sitename}', 'new-user-approve' ) . "\n\n";
$message .= "{site_url}\n\n";
$message .= __( 'To approve or deny this user access to {sitename} go to', 'new-user-approve' ) . "\n\n";
$message .= "{admin_approve_url}\n\n";
return $message;
}
mdaissafe on "[Plugin: New User Approve] User able to login to site before they are approved"
I am unable to get this plugin to work correctly. Users are able to log in immediately after registering. Even before I have approved them.
Here is a the site: shop.steamdist.com
Monilal Kumbhakar on "[Plugin: New User Approve] Custom registration process"
Hi is it work in my Custom registration form.
Thanks
Nathaniel T on "[Plugin: New User Approve] How to customize the approval message to the admin?"
I realize that is likely considered a repeat question to what has been asked by other users before. However I have looked through the other questions in this support forum and followed the instructions and code snippets provided on the plugin site. If someone would kindly lead me in the right direction to include the new user's first and last name in the email notification sent to the administrator it would be greatly appreciated!
Right now the email that is received when a new user registers looks something like this given the code I presented in my initial post.
{first_last_name} — {username} — ({user_email}) has requested a username at {sitename}
{site_url}
To approve or deny this user access to {sitename} go to
{admin_approve_url}