2014-03-12 65 views
1

我试过以下功能来摆脱updater删除,但它不会消失。Woocommerce更新删除

/*********************************************************************************************/ 
/********************************** Remove WooCommerce Updater *******************************/ 
/*********************************************************************************************/ 

remove_action('admin_notices', 'woothemes_updater_notice'); 

我也试过这样:

<?php 

/* 
Plugin Name: My Admin Theme 
Plugin URI: http://example.com 
Description: My WordPress Admin Theme - Upload and Activate. 
Author: Ms. WordPress 
Version: 1.0 
Author URI: http://example.com 
*/ 

function my_admin_theme_style() { 
    wp_enqueue_style('my-admin-theme', plugins_url('wp-admin.css', __FILE__)); 
} 
add_action('admin_enqueue_scripts', 'my_admin_theme_style'); 
add_action('login_enqueue_scripts', 'my_admin_theme_style'); 

?> 

与连接到它的CSS:

.updated.fade {display:none;} 

没有什么作品。那里有任何“天才”?

回答

0

这里是你的魔术(不需要插件,可以在主题的functions.php):

function removewoo_updates_info($value) { 
    unset($value->response['woocommerce/woocommerce.php']); 
    return $value; 
} 
add_filter('site_transient_update_plugins', 'removewoo_updates_info'); 

但要小心,更新是必要的;)

+0

现在,这是我拿到后将你的代码添加到我的functions.php [链接] http://postimg.org/image/w043eo76v/ [链接] – user3351714

+0

哪个版本。 wp&wooc。你在跑吗? –

+0

WC版本:\t 2.0.20 WC数据库版本:\t 2.0.5 WP版本:\t WP 3.8.1 Web服务器信息:\t阿帕奇 PHP版本:\t 5.3.24 – user3351714