Created
February 7, 2018 22:31
-
-
Save jamesgol/605898274b696c3081bafad049ad606b to your computer and use it in GitHub Desktop.
Stop WooCommerce.com nag
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
add_filter( 'woocommerce_helper_suppress_admin_notices', 'jmg_woocommerce_helper_suppress_admin_notices' ); | |
// Don't show the 'Connect your store to WooCommerce.com to receive extensions updates and support.' nag | |
function jmg_woocommerce_helper_suppress_admin_notices( $default ) { | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I always forget about the WordPress __return_true() helper function. A cleaned method as posted by Marco Almeida is:
add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' );