Tribe__Tickets__Tickets::getTemplateHierarchy( string $template )
Gets the view from the plugin’s folder, or from the user’s theme if found.
Contents
Parameters
- $template
-
(string) (Required)
Return
(mixed|void)
Source
File: src/Tribe/Tickets.php
public function getTemplateHierarchy( $template ) { if ( substr( $template, - 4 ) != '.php' ) { $template .= '.php'; } if ( $theme_file = locate_template( array( 'tribe-events/' . $template ) ) ) { $file = $theme_file; } else { $file = $this->plugin_path . 'src/views/' . $template; } return apply_filters( 'tribe_events_tickets_template_' . $template, $file ); }