• Custom Plugin
  • |
  • PHP
  • |
  • WordPress
  • |
  • WPCodebox

Enable Auto Update WordPress Plugins and Themes

Instructions:

  1. Add a PHP snippet in WPCodebox
  2. Paste the code from below
  3. Save it once
  4. Enable it and save it again

This will enable automatic updates of plugins and themes.

Type: PHP

add_filter("auto_update_plugin", "__return_true");
add_filter("auto_update_theme", "__return_true");
add_filter("allow_minor_auto_core_updates", "__return_true");


More Codes

Enable Auto Update WordPress Plugins and Themes

Discover how to enable auto updates for WordPress plugins and themes with WPCodeBox. Add PHP snippets, save, and enjoy hassle-free updates!

Automatically Assign ALT Text to Images in WordPress Posts If They are Missing

Automatically assign ALT text to images in WordPress posts with WPCodeBox. Improve SEO and accessibility easily with this PHP script!

Bash Script Expunge/Clear Logs and Journal Debian/Ubuntu Compatible using Cron

Efficiently manage log files on Ubuntu/Debian servers with a simple shell script. Reduce disk usage and keep your server running smoothly.