public function add_metaboxes() {

		// metabox defaults
		$defaults = [
			'context'  => 'advanced',
			'priority' => 'default',
		];

		$metabox = array_merge( $defaults, $this->struct );

		add_meta_box(
			'metabox-' . $this->id(),
			$metabox['name'],
			[ $this, 'create_metabox' ],
			$metabox['screen'],
			$metabox['context'],
			$metabox['priority']
		);

	}
public function add_metaboxes() {

		// metabox defaults
		$defaults = [
			'context'  => 'advanced',
			'priority' => 'default',
		];

		$metabox = array_merge( $defaults, $this->struct );

		add_meta_box(
			'metabox-' . $this->id(),
			$metabox['name'],
			[ $this, 'create_metabox' ],
			$metabox['screen'],
			$metabox['context'],
			$metabox['priority']
		);

	}
public function add_metaboxes ( ) { // metabox defaults $ defaults = [ 'context' => 'advanced' , 'priority' => 'default' , ] ; $ metabox = array_merge ( $ defaults , $ this -> struct ) ; add_meta_box ( 'metabox-' . $ this -> id ( ) , $ metabox [ 'name' ] , [ $ this , 'create_metabox' ] , $ metabox [ 'screen' ] , $ metabox [ 'context' ] , $ metabox [ 'priority' ] ) ; }
Add metaboxes to screen

@since  1.0.0
@access public
@uses   "add_meta_boxes" hook
Add metaboxes to screen