Metabox::print_template( WP_Post $post_id, array $arguments = array() )
Prints the rendered the Virtual Events Metabox.
Contents
Parameters
- $post_id
-
(WP_Post) (Required) Which post we are using here.
- $arguments
-
(array) (Optional) Arguments from the metabox, which we use to determine compatibility usage.
Default value: array()
Source
File: src/Tribe/Metabox.php
public function print_template( $post_id, array $arguments = [] ) {
/**
* We look inside of the arguments param for a `args` key since that is how WordPress metabox will pass
* the values used to register the metabox initially. If that doesn't exist we pass the whole arguments variable.
*/
$args = Arr::get( $arguments, 'args', $arguments );
echo $this->render_template( $post_id, $args ); /* phpcs:ignore */
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |