Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to customize your email subject.
Usage
add_filter('frm_email_subject', 'change_subject', 10, 2); function change_subject($subject, $atts)
Parameters
- $subject (string)
- $atts (array)
Examples
Customize Email Subject
Change the email subject for a single form.
add_filter('frm_email_subject', 'change_subject', 10, 2);
function change_subject($subject, $atts){
extract($atts);
if($form->id == 45){ //Replace 45 with the ID of your form.
$subject = 'Thank You'; //Replace Thank You with your email subject
}
return $subject;
}