Last Updated: February 25, 2016
·
1.025K
· rajeshkhatri13

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>

1 Response
Add your 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 ·