Skip to content

Instantly share code, notes, and snippets.

<?php
define ( 'COOKIE_DOMAIN', 'www.domain.com' );
@duogeekdev
duogeekdev / gist:80ced57d29bdd7611ab4
Created May 9, 2015 22:23
Disable JavaScript concatenation
<?php
define( 'CONCATENATE_SCRIPTS', false );
@duogeekdev
duogeekdev / Append post ID at the end of the URL for a custom post type.php
Created May 14, 2015 06:44
Append post ID at the end of the URL for a custom post type
<?php
function change_post_type_link( $link, $post = 0 ){
if ( $post->post_type == 'product' ){
return home_url( 'product/'. $post->post_name .'/'. $post->ID );
} else {
return $link;
}
}