Remove Featured Image

Remove feature image from single post content in Gutenberg

//remove feature image from single post content
function wordpress_hide_feature_image( $html, $post_id, $post_image_id ) {
  return is_single() ? '' : $html;
}
// add the filter
add_filter( 'post_thumbnail_html', 'wordpress_hide_feature_image', 10, 3);
No Comments

Sorry, the comment form is closed at this time.