[Plugin: Fast Secure Contact Form] Include User's Login Name if user is logged in
-
With WordPress 2.9.2+, you can include the user’s login name in the email if he/she is logged in. That way, you’ll know who sent the email if the user is logged in. For that you’ll have to tweak the code a little bit.
in si-contact-form/si-contact-form-process.php
Look for,
if ($user_ID != ” && !current_user_can(‘level_10’) ) {
//user logged in
$user_info_string .= __(‘From a WordPress user’, ‘si-contact-form’).’: ‘.$current_user->user_login . $php_eol;
}Replace
if ($user_ID != ” && !current_user_can(‘level_10’) ) {
with
if (is_user_logged_in() ) {Easy fix.
You’re welcome.
https://www.ads-software.com/extend/plugins/si-contact-form/
- The topic ‘[Plugin: Fast Secure Contact Form] Include User's Login Name if user is logged in’ is closed to new replies.