![]() |
Tắt update cho Wordpress |
Cách 1: Dùng Plugin Easy Updates Manager
Cách 2: Chèn code vào file function.php
1. Vô hiệu hóa thông báo cập nhật của WordPress:
add_action ( ‘after_setup_theme’ , ‘remove_core_updates’ ); function remove_core_updates () { if (! current_user_can ( ‘update_core’ )){ return ;} add_action ( ‘init’ , create_function ( ‘$a’ , “remove_action( ‘Init’, ‘wp_version_check’ );” ), 2 ); add_filter ( ‘pre_option_update_core’ , ‘__return_null’ ); add_filter ( ‘pre_site_transient_update_core’ , ‘__return_null’ ); }2. Vô hiệu hoá thông báo cập nhật của các Plugin trong WordPress:
remove_action ( ‘load-update-core.php’ , ‘wp_update_plugins’ ); add_filter ( ‘pre_site_transient_update_plugins’ , ‘__return_null’ );3. Vô hiệu hoá tất cả các thông báo cập nhật trong WordPress:
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’ ); add_filter ( ‘pre_site_transient_update_plugins’ , ‘remove_core_updates’ ); add_filter ( ‘pre_site_transient_update_themes’ , ‘remove_core_updates’ );P/s: Ngoài tắt thông báo nó còn quản lý để cho phép user update hay không. Recommend nên dùng Plugin rất tiện.
Bye Bye <3
Although 1xbet the returns may be be} minimal, this strategy helps you win. If you focus on to} even cash bets, you also cut back your risk of consistent or sustained losses. Whenever you could have} the choice, play on a European roulette table as a substitute of an American one. The European table has a decrease home advantage of 2.70 %, whereas the American table’s edge is a hefty 5.26 %. If a European table also provides the “in prison” guidelines, the home advantage is even decrease. As far as odds and basic equity of the game go, there are special institutions that make certain the video games you play aren't rigged in any means.
ReplyDelete