gravity_forms_constant_contact_email_type
Modify the type of email to be sent to the subscriber.
Description
Parameters (1)
- 0. $html (string) =>
'html'
- "html" or text allowed
Usage
- To run the hook, copy the example below.
- $html = apply_filters( 'gravity_forms_constant_contact_email_type', $html );
- if ( !empty( $html ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the gravity_forms_constant_contact_email_type callback
- function filter_gravity_forms_constant_contact_email_type( $html ) {
- // make filter magic happen here...
- return $html;
- };
- // add the filter
- add_filter( 'gravity_forms_constant_contact_email_type', 'filter_gravity_forms_constant_contact_email_type', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'gravity_forms_constant_contact_email_type', 'filter_gravity_forms_constant_contact_email_type', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /class-gf-constant-contact.php
- $subscriber_details['mail_type'] = apply_filters( 'gravity_forms_constant_contact_email_type', 'html' );