wp-post-by-email icon indicating copy to clipboard operation
wp-post-by-email copied to clipboard

Add filter for disable strip_tags and trim $content

Open casepress opened this issue 11 years ago • 2 comments

Hi Kat! I need a hook off the filter message content. Here https://github.com/codebykat/wp-post-by-email/blob/master/class-post-by-email.php#L687

Add filter as apply_filters( 'content_filter_disable', false );

Such as filter 'p2be_email_replies_enabled' in https://github.com/humanmade/P2-By-Email/

And swith function as add_filter( 'content_filter_disable', '__return_true' );

Example https://codeo.me/3GM

casepress avatar Jan 23 '14 17:01 casepress

Maybe something along these lines would work. This would not disable filtering altogether but use the global $allowedposttags.

$allowed_html = wp_kses_allowed_html( 'post' );  
$content = wp_kses( $string, $allowed_html );

barryceelen avatar Oct 13 '14 14:10 barryceelen

Hi there @casepress, can you tell me more about what you're trying to do with this filter?

codebykat avatar Mar 08 '15 05:03 codebykat