Hi,
To remove the reviews meta box in the accommodation post type, I add the following code to my functions.php. I want to remove ‘Categories’ & ‘Tags’ from the editor, as they both aren’t used on my site – how can I do this, please? I can’t find where the categories & tags meta boxes are added?
function plt_hide_motopress_hotel_booking_lite_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
remove_meta_box('reviews', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_motopress_hotel_booking_lite_metaboxes', 20);