Skip to content

Instantly share code, notes, and snippets.

@whyisjake
Created August 20, 2012 18:06
Show Gist options
  • Save whyisjake/3406231 to your computer and use it in GitHub Desktop.
Save whyisjake/3406231 to your computer and use it in GitHub Desktop.
New Permalink
add_action('pre_post_link', 'make_new_permalink', 1);
function make_new_permalink() {
if ( is_page( array( 'home-page', 'home-page-include' ) ) ) {
$permalink = 'http://makezine.com';
return $permalink;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment