• 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

Automatic Table of Content for Your WordPress Posts, Conditional Auto Insert before the First H2

Enhance long-form content readability with WPCodeBox’s Automatic Table of Contents before the first H2 header. Try it now and improve user experience!

How to Add “NEW”, “UPDATED”, and “OUTDATED” Badges to Your WordPress Posts

Enhance your WordPress posts with “NEW,” “UPDATED,” and “OUTDATED” badges! Keep your content fresh and organized for better user experience.

Auto Featured Image by Post Types Using Robolly API and Templates

Generate dynamic featured images for your WordPress posts with AFI – Robolly. Auto-generate and assign in a few simple steps!