Tribe__Tickets__RSVP::enqueue_resources()
Enqueue the plugin stylesheet(s).
Return
(void)
Source
File: src/Tribe/RSVP.php
public function enqueue_resources() {
$post_types = Tribe__Tickets__Main::instance()->post_types();
if ( ! is_singular( $post_types ) ) {
return;
}
wp_enqueue_style( 'event-tickets-rsvp' );
wp_enqueue_script( 'event-tickets-rsvp' );
// Check for override stylesheet
$user_stylesheet_url = Tribe__Templates::locate_stylesheet( 'tribe-events/tickets/rsvp.css' );
// If override stylesheet exists, then enqueue it
if ( $user_stylesheet_url ) {
wp_enqueue_style( 'tribe-events-tickets-rsvp-override-style', $user_stylesheet_url );
}
}
Changelog
| Version | Description |
|---|---|
| 3.9 | Introduced. |