Skip to content

Instantly share code, notes, and snippets.

@maor
Created January 21, 2013 11:11
Show Gist options
  • Save maor/4585346 to your computer and use it in GitHub Desktop.
Save maor/4585346 to your computer and use it in GitHub Desktop.
<?php
function illuminea_redirect_to_wordcamporg() {
if ( is_admin() )
return;
$year = date( 'Y' );
wp_redirect( "http://$year.jerusalem.wordcamp.org", 301 );
exit;
}
add_action( 'parse_request', 'illuminea_redirect_to_wordcamporg' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment