protected function get_post_content_as_html($post) { $content = apply_filters('the_content', $post->post_content); $text = $content . "\n\n" . $this->get_html_footer(get_permalink($post->ID)); /** * Filter the email content * * Use this to add tracking codes, metadata, etc * * @param string $text HTML content * @param WP_Post $post Post the content is generated from */ return apply_filters('falcon.connector.wordpress.post_content_html', $text, $post); }