Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Filter MailPoet tags not being stripped
/**
* Filter MailPoet tags not stripped out of emails - add table tags
*
* Located in wysija-newsletters/helpers/articles.php
*
* @link http://blackhillswebworks.com/?p=5648
*/
add_filter( 'mpoet_strip_tags_ignored', 'bhww_core_mailpoet_filter_tags_not_being_stripped' );
function bhww_core_mailpoet_filter_tags_not_being_stripped( $tags_not_being_stripped ) {
// added table, tr, td, th
$tags_not_being_stripped = array('<p>','<em>','<span>','<b>','<strong>','<i>','<h1>','<h2>','<h3>','<a>','<ul>','<ol>','<li>','<br>','<table>','<tr>','<td>','<th>');
return $tags_not_being_stripped;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment