public get_post_content_for_csv_export ( integer $post_id ) : string | ||
$post_id | integer | The post id to fetch the content for. |
return | string | Trimmed post comment. |
public function get_post_content_for_csv_export($post_id)
{
$post_content = get_post_field('post_content', $post_id);
$content = explode('<!--more-->', $post_content);
return trim($content[0]);
}