Mình có 1 dãy hệ thống Wordpress nó hay tự động update các plugin nhiều khi tự động update themes làm lỗi themes rất khó chịu, bạn nào biết cách tắt tự động auto update cập nhật plugin themes trong Wodpress trọn bộ không giúp mình với, mình lên trên mạng xem cách tự động tắt plugin hoặc themes trên web mà nó cứ update ào ào bực ghê.
Bạn thử các code sau chèn vào tập tin function.php của themes xem như thế nào nhé, toàn tập: PHP: function disable_update_notifications(){ global $wp_version; return (object) array( 'last_checked'=> time(), 'version_checked'=> $wp_version );}add_filter('pre_site_transient_update_core','disable_update_notifications');add_filter('pre_site_transient_update_plugins','disable_update_notifications');add_filter('pre_site_transient_update_themes','disable_update_notifications'); Và chèn vào wp-config.php code sau: PHP: define( 'WP_AUTO_UPDATE_CORE', false ); Hoặc chèn vào function.php của themes PHP: add_filter( 'auto_update_theme', '__return_false' );add_filter( 'auto_update_plugin', '__return_false' ); Nếu bạn muốn ẩn bớt thanh danh mục để thành viên không vào ấn update với các user thường thì dùng code sau: PHP: //an bot menu de khong updatefunction itseovn_admin_menus() { remove_menu_page( 'index.php' ); // Menu Bang tin remove_menu_page( 'themes.php' ); // Menu Giao dien remove_menu_page( 'plugins.php' ); // Menu Plugins}add_action( 'admin_menu', 'itseovn_admin_menus' ); Xem thêm: https://itseovn.com/threads/an-bot-cac-menu-trong-quan-tri-admin-wordpress.280149/ Nếu muốn sử dụng plugin thì cài plugin sau: https://wordpress.org/plugins/stops-core-theme-and-plugin-updates/