This file contains hidden or 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
<?php | |
/** | |
* Template Name: Eventbrite Theme Template | |
* | |
* The template used for displaying all events | |
* | |
* @package New West End | |
*/ | |
get_header(); ?> |
This file contains hidden or 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
function prefix_register_query_var( $vars ) { | |
$vars[] = 'eb_id'; | |
$vars[] = 'eb_t'; | |
return $vars; | |
} | |
add_filter( 'query_vars', 'prefix_register_query_var' ); | |
function prefix_url_rewrite_templates() { | |
if ( get_query_var( 'eb_id' ) ) { |
This file contains hidden or 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
<?php | |
/** | |
* The Template for displaying all single Eventbrite events. | |
* | |
* This is nearly an exact copy of the default single view from the Eventbrite API plugin. | |
* @param string eb_id - The ID of the event | |
*/ | |
get_header(); ?> |