Write code in function.php
Removing Storefront inline css
1 2 3 4 5 | function wpcustom_deregister_scripts_and_styles(){ wp_deregister_style('storefront-woocommerce-style'); wp_deregister_style('storefront-style'); } add_action( 'wp_print_styles', 'wpcustom_deregister_scripts_and_styles', 100 ); |
Disable plugin & Theme updates
1 2 | add_filter( 'auto_update_plugin', '__return_false' ); add_filter( 'auto_update_theme', '__return_false' ); |
Hide dashboard update notifications for all users
1 2 3 4 | function vipul_hide_update_nag() { remove_action( 'admin_notices', 'update_nag', 3 ); } add_action('admin_menu','vipul_hide_update_nag'); |
Hide update notifications
1 2 3 4 5 6 | function remove_core_updates(){ global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,); } add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes |