• Hello
    I read to paste this
    define( ‘AUTOMATIC_UPDATER_DISABLED’, true );
    in wp-config.php to disable all automatic updates.

    The last two lines of my wp-config.php file are these:

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);

    Should that be pasted after this last line?

    thank you
    D.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I would advise to place it just above the line that reads:

    /* That’s all, stop editing! Happy blogging. */

    Thread Starter Deon

    (@deon-b)

    Hi
    thank you for your reply.
    Can you please tell me why that would be better?

    thanks
    D.

    Mainly because I use wp-cli and it expects to see those two lines as the last thing in the wp-config.php

    Thread Starter Deon

    (@deon-b)

    Ok thank you.
    If I disable automatic updates this way, will I still get notifications in my dashboard about updates so that I can choose when to apply them?

    Thanks
    D.

    Yes, it will notify you that updates are available.

    Thread Starter Deon

    (@deon-b)

    Ok cool, thanks.
    So just for double confirmation it would go like this:

    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    
    define( 'AUTOMATIC_UPDATER_DISABLED', true );
    
    /* That's all, stop editing! Happy blogging. */

    Thanks
    D.

    That would work, yes.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Disable Automatic Updates. Wp-Config.php. Is It Like This?’ is closed to new replies.