Skip to content

Instantly share code, notes, and snippets.

@bhwebworks
Last active January 18, 2016 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bhwebworks/2eb8c0e18f05808d4cf9 to your computer and use it in GitHub Desktop.
Save bhwebworks/2eb8c0e18f05808d4cf9 to your computer and use it in GitHub Desktop.
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