How to disable automatic updates in WordPress

Has your site ever crashed or suffered because of unexpected Plugin or WordPress core update. If you want to have complete control over the autoupdate feature for plugins, core and themes you would want to use the following two code snippets.


	Goes in -> wp-config.php

	define( 'WP_AUTO_UPDATE_CORE', false );
	define( 'automatic_updater_disabled', true );
	define( 'wp_auto_update_core', false );

	Goes in -> functions.php

	add_filter( 'auto_update_plugin', '__return_false' );
	add_filter( 'auto_update_theme', '__return_false' );
  

This two snippets will effectively freeze the state of your WP install – no more unexpected updates.

Cheers,
Sam