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.
Use this hook to turn on email subject encoding.
Usage
add_filter( 'frm_encode_subject', 'frm_add_subject_encoding', 10, 2);
Parameters
- $encode (bool)
- $subject (string)
Examples
Add subject encoding
Prevent all Formidable email encoding.
add_filter( 'frm_encode_subject', 'frm_add_subject_encoding', 10, 2);
function frm_add_subject_encoding( $encode, $subject ) {
return true;
}