Tribe__Tickets_Plus__Main::get_template_hierarchy( $template )
Gets the view from the plugin’s folder, or from the user’s theme if found.
Contents
Parameters
- $template
-
(Required)
Return
(mixed|void)
Source
File: src/Tribe/Main.php
public function get_template_hierarchy( $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 );
}