Add more info to Admin New User
-
Hi
I am using Mingle and Mingle forum, so I have by passed WP’s Login/registration page in order to have it match my theme. In Mingle I was able to add some custom fields, yet those custom fields don’t get sent to Admin. I’m using these custom fields to decipher what forums the user is allowed access to.
Right now I am rushing to the database everytime someone registers at the sight to figure out where to put them.
I contacted the people who created Mingle and they told me that it just uses the WP email notification and said if they had time they might look into helping me.
In the mean time I have found the area (at least I think) where the email is generated.in ms-functions.php
function newuser_notify_siteadmin( $user_id ) {
if ( get_site_option( ‘registrationnotification’ ) != ‘yes’ )
return false;$email = get_site_option( ‘admin_email’ );
if ( is_email($email) == false )
return false;$user = new WP_User($user_id);
$options_site_url = esc_url(network_admin_url(‘ms-options.php’));
$msg = sprintf(__(‘New User: %1s
Remote IP: %2sDisable these notifications: %3s’), $user->user_login, $_SERVER[‘REMOTE_ADDR’], $options_site_url);
$msg = apply_filters( ‘newuser_notify_siteadmin’, $msg );
wp_mail( $email, sprintf(__(‘New User Registration: %s’), $user->user_login), $msg );
return true;
}Since the info is already in the database, can’t I just add the three custom values somehow? If the user id matches the user_id in the database called wp_mngl_field_values then echo or display those three values.
Can anyone help me here…I’m no programmer or I’d do it myself.
then add to the admin email
- The topic ‘Add more info to Admin New User’ is closed to new replies.