• 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

WordPress Cron Job Cleanup Made Easy – My Cron Manager

Effortlessly manage WordPress cron jobs with My Cron Manager. Clean up, view, and control tasks to boost site performance.

Shell/Bash Script Migrating WordPress – Find and Replace all Instance of Domain Name in WordPress or MySQL Database

Automate WordPress Domain Migration with our Shell Script. Easily Find & Replace all instances of your old domain in the MySQL database. Try it now!

How to Add Source Code Highlights and a Copy Button in WordPress

“Learn how to add source code highlights and a ‘Copy Code’ button to your WordPress site without using plugins! Improve functionality and aesthetics today.”