Description
Return the subject of the email
Usage
$string = bw_get_email_subject( $subject, $fields );Parameters
- $subject
- ( string ) optional – email subject
- $fields
- ( array ) optional – reference to the fields array – we update the 'subject' field
Returns
string the email subjectSource
File name: oik/includes/oik-contact-form-email.phpLines:
1 to 9 of 9
function bw_get_email_subject( $subject=null, &$fields=array() ) { if ( null == $subject ) { $subject = __( "Contact form submission" ); } add_filter( "bw_email_subject", "bw_replace_fields", 1, 2 ); $subject = apply_filters( "bw_email_subject", $subject, $fields ); $fields['subject'] = $subject; return( $subject ); }View on GitHub View on Trac
