Metabox::render_classic_display_controls( null|WP_Post|int $post = null, bool $echo = true )
Renders, echoing to the page, the API meeting display controls.
Contents
Parameters
- $post
-
(null|WP_Post|int) (Optional) The post object or ID of the event to generate the controls for, or
nullto use the global post object.Default value: null
- $echo
-
(bool) (Optional) Whether to echo the template contents to the page (default) or to return it.
Default value: true
Return
(string) The template contents, if not rendered to the page.
Source
File: src/Tribe/Metabox.php
public function render_classic_display_controls( $post = null, $echo = true ) {
return $this->template->template(
'virtual-metabox/api/display',
[
'event' => $post,
'metabox_id' => Metabox::$id,
],
$echo
);
}
Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |