Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove Support Nag W3 Total Cache
Plugin Name: Disable W3 Total Cache Nags
Version: 1.0
Author: Blue Liquid Designs
add_action( 'wp_loaded', 'bld_disable_w3_total_cache_nags' );
function bld_disable_w3_total_cache_nags()
if (is_w3tc_admin_page()) {
$notifications = w3_instance('W3_Plugin_NotificationsAdmin');
remove_action('w3tc-dashboard-head', array($notifications, 'support_us_nag') );
remove_action('w3tc-dashboard-head', array($notifications, 'edge_nag') );

This comment has been minimized.

Copy link
Owner Author

@jakejackson1 jakejackson1 commented Jan 28, 2015

I quite enjoy all the options WordPress plugin W3 Total Cache give you, but I was sick of the support nag loading on every admin page (it was unbearable).

This little code snippet will disable that functionality without modifying the core plugin. Either install it as a plugin or drop it in your theme's functions.php file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment