function plt_hide_amp_blocks_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Post Attributes" meta box.
remove_meta_box('pageparentdiv', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_amp_blocks_metaboxes', 20);