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
PHTML

<?php
function add_shows_feed() {
1 year ago
add_feed( 'shows.xml', 'render_shows_feed' );
}
add_action( 'init', 'add_shows_feed' );
1 year ago
function render_shows_feed() {
load_template(dirname(__FILE__)."/../feeds/radiomanifest-shows.php" );
}
1 year ago
// 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' );
?>