2014-03-12 68 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