Template_Modifications::render_show_to_controls( TribeEventsVirtualCompatibilityEvent_TicketsWP_Post $event = null, string $html = null, boolean $echo = true )
Render the virtual event show-to controls.
Contents
Parameters
- $event
-
(TribeEventsVirtualCompatibilityEvent_TicketsWP_Post) (Optional) The event post we are editing.
Default value: null
- $html
-
(string) (Optional) The initial HTML.
Default value: null
- $echo
-
(boolean) (Optional) To echo or not to echo, that is the question.
Default value: true
Return
(string|false) Either the final content HTML or false
if no template could be found.
Source
File: src/Tribe/Compatibility/Event_Tickets/Template_Modifications.php
public function render_show_to_controls( $event = null, $html = null, $echo = true ) { $event = tribe_get_event( $event ); if ( ! $event instanceof \WP_Post ) { return $html; } return $this->template->template( 'virtual-metabox/container/compatibility/event-tickets/show-to', [ 'post' => $event, 'metabox_id' => Metabox::$id, ], $echo ); }
Changelog
Version | Description |
---|---|
1.0.4 | Introduced. |