You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			449 B
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			449 B
		
	
	
	
		
			PHP
		
	
<?php
 | 
						|
 | 
						|
function add_shows_feed() {
 | 
						|
    add_feed( 'shows.xml', 'render_shows_feed' );
 | 
						|
}
 | 
						|
add_action( 'init', 'add_shows_feed' );
 | 
						|
 | 
						|
function render_shows_feed()    {
 | 
						|
    load_template(dirname(__FILE__)."/../feeds/radiomanifest-shows.php" );
 | 
						|
}
 | 
						|
 | 
						|
// enable cors policy for every feed
 | 
						|
function add_header_origin() {
 | 
						|
    if (is_feed()){
 | 
						|
        header( 'Access-Control-Allow-Origin: *' );
 | 
						|
    }
 | 
						|
}    
 | 
						|
add_action( 'pre_get_posts', 'add_header_origin' );
 | 
						|
 | 
						|
 | 
						|
?>
 |