WordPress.org

Ready to get started?Download WordPress

Forums

Configuring Automatic Background Updates (5 posts)

  1. Yael K. Miller
    Member
    Posted 9 months ago #

    Yes, I've read the documentation page.

    If I want to Disable All Updates, the doc says that drop the line of code in wp-config.php and theme's function.php

    But what about all the other options -- such as the option to specifically enable development (nightly) updates -- which file(s) does that code go into?

  2. Lorenzo Orlando Caum
    Member
    Posted 9 months ago #

    Your theme's functions.php file.

  3. Yael K. Miller
    Member
    Posted 9 months ago #

    Interesting. Why? Why would controlling the updates of WordPress go in a theme function.php file?

  4. Matthew
    Member
    Posted 9 months ago #

    You can just download Disable All Updates.

  5. bemdesign
    Member
    Posted 9 months ago #

    Or you can create your own little plugin and paste the code into its own PHP file (see the WordPress codex on how to author plugins for best practices). Then just enable the plugin. This will work across different themes as well as WordPress updates. However if they change how to code things in a future WordPress update, you may also need to update said plugin to match the changes (i.e. some functions get deprecated and removed from WordPress core and you may need to update your plugin's code to work with these changes).

Reply

You must log in to post.

About this Topic