Tribe__Events__Community__Main::overwrite_multiple_organizers_template( string $template )
Method used to overwrite the admin template for multiple organizers
Contents
Parameters
- $template
-
(string) (Required) The original template
Return
(string)
Source
File: src/Tribe/Main.php
public function overwrite_multiple_organizers_template( $template ) { if ( is_admin() ) { return $template; } $community_file = Tribe__Events__Templates::getTemplateHierarchy( 'community/modules/organizer-multiple.php' ); ob_start(); include $community_file; $community_html = trim( ob_get_clean() ); // Only use this URL if the template is not empty if ( empty( $community_html ) ) { return $template; } return $community_file; }