ms_wpbe_html_body

WP Better email wrapper.

Description

Returns (string)

The modified html message.

Parameters (1)

0. $wp_better_emails_template_vars_replacement_wp_better_emails_set_email_template_html_message_template (string)
The wp better emails template vars replacement wp better emails set email template html message template.

Usage

To run the hook, copy the example below.
  1. $wp_better_emails_template_vars_replacement_wp_better_emails_set_email_template_html_message_template = apply_filters( 'ms_wpbe_html_body', $wp_better_emails_template_vars_replacement_wp_better_emails_set_email_template_html_message_template ); 
  2.  
  3. if ( !empty( $wp_better_emails_template_vars_replacement_wp_better_emails_set_email_template_html_message_template ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ms_wpbe_html_body callback 
  2. function filter_ms_wpbe_html_body( $wp_better_emails_template_vars_replacement_wp_better_emails_set_email_template_html_message_template ) { 
  3. // make filter magic happen here... 
  4. return $wp_better_emails_template_vars_replacement_wp_better_emails_set_email_template_html_message_template
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ms_wpbe_html_body', 'filter_ms_wpbe_html_body', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ms_wpbe_html_body', 'filter_ms_wpbe_html_body', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/app/addon/wpbe/class-ms-addon-wpbe.php  
  1. $html_message = apply_filters(