post_type && !empty($post->post_parent) ? get_post_field('post_content', $post->post_parent) : get_post_field('post_content', $post->ID); if ( !isset($field['args']['postcontent']) || 'false' !== $field['args']['postcontent'] ) { $postContent = apply_filters('the_content', $postContent); } return wp_strip_all_tags($postContent); } }