Metabox::__construct( TribeEventsVirtualAdmin_Template $template, Tribe__Context|null $context = null )

Metabox constructor.


Parameters

$template

(TribeEventsVirtualAdmin_Template) (Required) An instance of the plugin template handler.

$context

(Tribe__Context|null) (Optional) The instance of the Context the metabox should use, or null to use the global one.

Default value: null


Top ↑

Source

File: src/Tribe/Metabox.php

	public function __construct( Admin_Template $template, Context $context = null ) {
		$this->context  = null !== $context ? $context : tribe_context();
		$this->template = $template;
	}

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.