Hướng dẫn tắt update wordpress

Khi bạn thiết kế website wordpress thì sẽ thấy wordpress sẽ tự động update theme , plugin và score wordpress.Mặc dù tự động update có nhiều tiện lợi nhưng cũng là thách thức trong bảo mật.

Để tắt update core bạn thêm dòng code sau vào file wp-config.php

[crayon]define( ‘WP_AUTO_UPDATE_CORE’, false ); [/crayon]

Để tắt update plugin bạn thêm dòng sau :

[crayon] add_filter( ‘auto_update_plugin’, ‘__return_false’ );[/crayon]

Để tắt update theme bạn dùng code sau

[crayon] add_filter( ‘auto_update_theme’, ‘__return_false’ );[/crayon]

 

 

Rate this post
Theo dõi
Thông báo của
0 Góp ý
Phản hồi nội tuyến
Xem tất cả bình luận
Chat Zalo

0932644183