Event_Status
Handle integration of Event Status add-on.
See also
Source
File: src/Tribe/Integrations/Event_Status.php
class Event_Status { /** * Setup the hooks for Event Status integration. * * @since 4.8.11 */ public function hooks() { add_action( 'tribe_events_community_form_before_linked_posts', [ $this, 'render_meta_box' ] ); } /** * Handle rendering the event status meta box. * * @since 4.8.11 * * @param int|WP_Post $event Event object or ID. */ public function render_meta_box( $event ) { $data = [ 'event' => $event, ]; tribe_get_template_part( 'community/modules/event_status', null, $data ); } }
Changelog
Version | Description |
---|---|
4.8.11 | Introduced. |
Methods
- hooks — Setup the hooks for Event Status integration.
- render_meta_box — Handle rendering the event status meta box.