Metabox::render_classic_display_controls( null|WP_Post|int $post = null, bool $echo = true )

Renders, echoing to the page, the API meeting display controls.


Parameters

$post

(null|WP_Post|int) (Optional) The post object or ID of the event to generate the controls for, or null to 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


Top ↑

Return

(string) The template contents, if not rendered to the page.


Top ↑

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
		);
	}

Top ↑

Changelog

Changelog
Version Description
1.9.0 Introduced.