Created
February 12, 2014 22:07
-
-
Save kshaner/8965524 to your computer and use it in GitHub Desktop.
Remove W3 Total Cache comment from footer except for admins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disable W3TC footer comment for everyone but Admins (single site) / Super Admins (network mode) | |
if ( !current_user_can( 'unfiltered_html' ) ) { | |
add_filter( 'w3tc_can_print_comment', function( $w3tc_setting ) { return false; }, 10, 1 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment