Skip to content

Instantly share code, notes, and snippets.

@jazbek
Last active December 20, 2015 20:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazbek/6189599 to your computer and use it in GitHub Desktop.
Save jazbek/6189599 to your computer and use it in GitHub Desktop.
Change tribe community events template
<?php
add_action('wp_router_generate_routes', 'tribe_set_community_template', 100, 1);
function tribe_set_community_template( $router ) {
$new_template = array(
'template' => array('new-template.php'), // edit this filename to be the one you want to use in your theme
);
$router->edit_route('ce-edit-venue-route', $new_template);
$router->edit_route('ce-edit-organizer-route', $new_template);
$router->edit_route('ce-edit-route', $new_template);
$router->edit_route('ce-edit-redirect-route', $new_template);
$router->edit_route('ce-add-route', $new_template);
$router->edit_route('ce-delete-route', $new_template);
$router->edit_route('ce-list-route', $new_template);
$router->edit_route('ce-list-route-args', $new_template);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment