Skip to content

Instantly share code, notes, and snippets.

View mjangda's full-sized avatar

Mohammad Jangda mjangda

View GitHub Profile
@mjangda
mjangda / perm.php
Created August 20, 2012 18:12 — forked from whyisjake/perm.php
New Permalink
add_filter( 'pre_post_link', 'make__permalink', 10, 2 );
function make_new_permalink( $permalink, $post ) {
if ( 'page' == $post->post_type && in_array( $post->page_name, array( 'home-page', 'home-page-include' ) ) ) {
$permalink = 'http://makezine.com';
}
return $permalink;
}