Tribe__Events__Community__Tickets__Shortcodes::hooks()
Add a hook for the tribe_community_tickets shortcode tag and Enqueue the Community Tickets scripts before rendering the shortcode for CE Submission form
Source
File: src/Tribe/Shortcodes.php
public function hooks() { // Enqueues Community Tickets scripts before rendering the CE Submission form via shortcode add_action( 'tribe_events_community_before_shortcode', array( $this, 'enqueue_assets' ) ); // Add the Community Tickets shortcode add_shortcode( 'tribe_community_tickets', array( $this, 'do_shortcode' ) ); }
Changelog
Version | Description |
---|---|
4.6.2 | Introduced. |