WC_Admin_Post_Types::hidden_meta_boxes()publicWC 1.0

Hidden default Meta-Boxes.

{} It's a method of the class: WC_Admin_Post_Types{}

No Hooks.

Return

Array.

Usage

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->hidden_meta_boxes( $hidden, $screen );
$hidden(array) (required)
Hidden boxes.
$screen(object) (required)
Current screen.

Code of WC_Admin_Post_Types::hidden_meta_boxes() WC 6.7.0

public function hidden_meta_boxes( $hidden, $screen ) {
	if ( 'product' === $screen->post_type && 'post' === $screen->base ) {
		$hidden = array_merge( $hidden, array( 'postcustom' ) );
	}

	return $hidden;
}