protected function get_post_content_as_text($post) { $content = apply_filters('the_content', $post->post_content); // Sanitize the HTML into text $content = apply_filters('bbsub_html_to_text', $content); // Build email $text = $content . "\n\n" . $this->get_text_footer(get_permalink($post->ID)); /** * Filter the email content * * Use this to change document formatting, etc * * @param string $text Text content * @param WP_Post $post Post the content is generated from */ return apply_filters('falcon.connector.wordpress.post_content_text', $text, $post); }