Skip to content

Instantly share code, notes, and snippets.

@mintindeed
Created July 12, 2012 23:09
Show Gist options
  • Save mintindeed/3101724 to your computer and use it in GitHub Desktop.
Save mintindeed/3101724 to your computer and use it in GitHub Desktop.
WordPress Cachebuster for Development
function pmc_dev_cachebuster( $src ) {
return add_query_arg( 'ver', time(), $src );
}
add_filter( 'style_loader_src', 'pmc_dev_cachebuster' );
add_filter( 'script_loader_src', 'pmc_dev_cachebuster' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment