Metabox::__construct( TribeEventsVirtualAdmin_Template $template, Tribe__Context|null $context = null )
Metabox constructor.
Contents
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
nullto use the global one.Default value: null
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;
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |