Exemplo n.º 1
0
 function rs_wpss_modify_signup_notification_admin($text, $user_id, $user)
 {
     /* Check if registration spam shield is disabled - Added in 1.6.9 */
     global $spamshield_options;
     if (empty($spamshield_options)) {
         $spamshield_options = get_option('spamshield_options');
     }
     if (!empty($spamshield_options['registration_shield_disable'])) {
         return $text;
     }
     $wpss_display_name = $user->display_name;
     $wpss_user_firstname = $user->user_firstname;
     $wpss_user_lastname = $user->user_lastname;
     $wpss_user_email = $user->user_email;
     $wpss_user_url = $user->user_url;
     $wpss_user_login = $user->user_login;
     $wpss_user_id = $user->ID;
     $display_name_txt = __('Display Name', WPSS_PLUGIN_NAME);
     $first_name_txt = __('First Name', WPSS_PLUGIN_NAME);
     $last_name_txt = __('Last Name', WPSS_PLUGIN_NAME);
     $user_id_txt = __('User ID', WPSS_PLUGIN_NAME);
     $text .= "\r\n";
     $text .= sprintf($display_name_txt . ': %s', $wpss_display_name) . "\r\n\r\n";
     $text .= sprintf($first_name_txt . ': %s', $wpss_user_firstname) . "\r\n\r\n";
     $text .= sprintf($last_name_txt . ': %s', $wpss_user_lastname) . "\r\n\r\n";
     $text .= sprintf($user_id_txt . ': %s', $wpss_user_id) . "\r\n\r\n\r\n";
     $text = rs_wpss_extra_notification_data($text, $spamshield_options);
     return $text;
 }
 function rs_wpss_modify_signup_notification_admin($text, $user_id, $user)
 {
     /* Check if registration spam shield is disabled - Added in 1.6.9 */
     global $spamshield_options;
     if (empty($spamshield_options)) {
         $spamshield_options = get_option('spamshield_options');
     }
     if (!empty($spamshield_options['registration_shield_disable'])) {
         return $text;
     }
     $wpss_display_name = $user->display_name;
     $wpss_user_firstname = $user->user_firstname;
     $wpss_user_lastname = $user->user_lastname;
     $wpss_user_email = $user->user_email;
     $wpss_user_url = $user->user_url;
     $wpss_user_login = $user->user_login;
     $wpss_user_id = $user->ID;
     if (!rs_wpss_is_lang_en_us()) {
         $locale = get_locale();
         @load_textdomain('default', WP_LANG_DIR . "/admin-{$locale}.mo");
     }
     $disp_name_txt = rs_wpss_disp_name_txt();
     $first_name_txt = rs_wpss_first_name_txt();
     $last_name_txt = rs_wpss_last_name_txt();
     $user_id_txt = __('User ID', 'wp-spamshield');
     $text .= "\r\n";
     $text .= sprintf($disp_name_txt . ': %s', $wpss_display_name) . "\r\n\r\n";
     $text .= sprintf($first_name_txt . ': %s', $wpss_user_firstname) . "\r\n\r\n";
     $text .= sprintf($last_name_txt . ': %s', $wpss_user_lastname) . "\r\n\r\n";
     $text .= sprintf($user_id_txt . ': %s', $wpss_user_id) . "\r\n\r\n\r\n";
     $text = rs_wpss_extra_notification_data($text, $spamshield_options);
     return $text;
 }