There are hooks for modifying the from name and from email
// hook for modifying the from_name and from_email
self::$email_fields['from_name'] = apply_filters('si_contact_from_name', self::$email_fields['from_name'], self::$form_id_num);
self::$email_fields['from_email'] = apply_filters('si_contact_from_email', self::$email_fields['from_email'], self::$form_id_num);
Here is an example of how a hook can be used:
filter hook for modifying the email message from_name
Add the function code to your theme’s functions.php file or to a custom plugin.
be aware that if you change your theme the code has to be added to the functions.php of the new theme.
Be sure to set the setting inside the function to control which forms you want this function applied.
example run this code for all forms:
$all_forms = true;
example run this code for form 1 only:
$all_forms = false;
$forms = array(‘1’);
example run this code for form 1, 2, and 5 only:
$all_forms = false;
$forms = array(‘1′,’2′,’5’);
function my_action_from_name($from_name, $form_id_num) {
##################################
// control which forms you want this on
$all_forms = false; // set to true for process on all forms, or false to use settings below
$forms = array('1','2'); // one or more individual forms
##################################
if ( !in_array($form_id_num, $forms) && $all_forms != true)
return $from_name;
// change the email from_name
$from_name = 'the name you want';
return $from_name;
}
// filter hook to change the email from_name
add_filter('si_contact_from_name', 'my_action_from_name', 1, 2);