I've tried to use
function my_remove_meta_boxes() {
remove_meta_box( 'postimagediv', 'post', 'side' );
}
add_action( 'add_meta_boxes', 'my_remove_meta_boxes' );
and
function hide_featured_image( $hidden, $screen) {
$hidden[] = 'postimagediv';
return $hidden;
}
add_filter('hidden_meta_boxes', 'hide_featured_image', 10, 2);
I've also tried it with default_hidden_meta_boxes
filter.
None of these work.
I don't even know if I'm using the correct name for the box because I can't get it to print out the names of the default boxes.
I'm using WordPress 5.2.1 with Gutenberg and Nelio Content plugin which has its own featured image sidebar box. I want to hide the default Featured Image so the admins don't use it by mistake.