foreach ($depTax as $depTerm) {
$deps[] = $depTerm->name;
}
- add_filter( 'wp_mail_content_type', 'set_html_content_type' );
+ add_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type' ) );
wp_mail(
$to,
$headers
);
- remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
+ remove_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type' ) );
+ }
+
+ public function set_html_content_type()
+ {
+ return 'text/html';
}
/**