How to disable wordpress updates
<h1>Paste below code in your <i>function.php</i> file to</h1>
<h3>Disable Theme Updates # 3.0+</h3>
//Disable Theme Updates # 3.0+
removeaction( 'load-update-core.php', 'wpupdatethemes' );
addfilter( 'presitetransientupdatethemes', createfunction( '$a', "return null;" ) );
wpclearscheduledhook( 'wpupdatethemes' );
</code></pre>
<h3>Disable Plugin Updates #3.0+</h3>
//Disable Plugin Updates #3.0+
removeaction( 'load-update-core.php', 'wpupdateplugins' );
addfilter( 'presitetransientupdateplugins', createfunction( '$a', "return null;" ) );
wpclearscheduledhook( 'wpupdateplugins' );
</code></pre>
<h3>Diasable Core Updates # 3.0+</h3>
//Diasable Core Updates # 3.0+
addfilter( 'presitetransientupdatecore', createfunction( '$a', "return null;" ) );
wpclearscheduledhook( 'wpversion_check' );
</code></pre>
Written by Rajesh Khatri
Related protips
1 Response
It's good to always point out that disabling updates is a bad idea - updates are there for a reason - they improve security(which is very important), performance and user experience.
It's true that if there are plugins that don't keep-up with the WordPress core development, you can get your site broken, but that's a different story.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Wordpress
Authors
Related Tags
#wordpress
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#