public function create_metabox( $post ) {

		$this->post = $post;
		$data       = get_post_meta( $post->ID, $this->slug, true );
		if ( empty( $data ) ) {
			$data = [
				$this->slug => [],
			];
		}
		$this->set_data( $data );
		echo $this->render();

	}
public function create_metabox( $post ) {

		$this->post = $post;
		$data       = get_post_meta( $post->ID, $this->slug, true );
		if ( empty( $data ) ) {
			$data = [
				$this->slug => [],
			];
		}
		$this->set_data( $data );
		echo $this->render();

	}
public function create_metabox ( $ post ) { $ this -> post = $ post ; $ data = get_post_meta ( $ post -> ID , $ this -> slug , true ) ; if ( empty ( $ data ) ) { $ data = [ $ this -> slug => [ ] , ] ; } $ this -> set_data ( $ data ) ; echo $ this -> render ( ) ; }
Callback for the `add_meta_box` that sets the metabox data and renders it

@since  1.0.0
@uses   "add_meta_box" function
@access public

@param wp_post $post Current post for the metabox
Callback for the add_meta_box that sets the metabox data and renders it