• Resolved Matthew

    (@kidsguide)


    I would like to disable the major and minor core updates individually. Is there a code for that?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’ll want to add the following to your wp-config.php file:

    define( 'WP_AUTO_UPDATE_CORE', false );

    that will disable all automatic updates from ever firing.

    Evan

    Thread Starter Matthew

    (@kidsguide)

    Thanks for the code but that was not what I was looking for. I want to disable the major and minor core updates separately.

    May I ask (as a personal question), what would be the benefit of doing them separately as opposed to at the same time?

    Minor:
    add_filter( 'allow_minor_auto_core_updates', '__return_false' );

    Major:
    add_filter( 'allow_major_auto_core_updates', '__return_false' );

    Reference

    Enjoy!
    Evan

    Thread Starter Matthew

    (@kidsguide)

    It is for a plugin of mine. The person can disable the major or minor updates individually.

    Thanks! I didn’t think of looking in the codex.

    ah, that hadn’t occurred to me. That seems like a reasonable setting to have.

    Best of luck with the plugin!

    Evan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable major and minor core updates.’ is closed to new replies.