Created
December 11, 2013 17:02
-
-
Save ckpicker/7914377 to your computer and use it in GitHub Desktop.
Community Events Add-on 3.2 // Use Custom Page Template for Community
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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