WordPress at a glance
function is not described

WP_Post_Type::unregister_meta_boxes() WP 4.6.0

Unregisters the post type meta box if a custom callback was specified.

This is a method of the class: WP_Post_Type

No Hooks.

Return

Null. Nothing.

Usage

$WP_Post_Type = new WP_Post_Type();
$var = $WP_Post_Type->unregister_meta_boxes();

Changelog

Since 4.6.0 Introduced.

Code of WP Post Type::unregister meta boxes: wp-includes/class-wp-post-type.php WP 5.2.2

<?php
public function unregister_meta_boxes() {
	if ( $this->register_meta_box_cb ) {
		remove_action( 'add_meta_boxes_' . $this->name, $this->register_meta_box_cb, 10 );
	}
}