Skip to content

Instantly share code, notes, and snippets.

@alanb1501
Created March 8, 2013 17:48
Show Gist options
  • Save alanb1501/5118348 to your computer and use it in GitHub Desktop.
Save alanb1501/5118348 to your computer and use it in GitHub Desktop.
Disable W3C Total Cache caching of other WP plugin content.
add_action('wp_head','inject_javascript');
function inject_javascript() {
?>
<!-- mfunc
$uid = uniqid ();
echo '<!-- Plugin v.01 ID: -->';
echo '<!--'. $uid .'-->';
echo "\n";
-->
<!--/mfunc -->
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment