Disable update checking of WordPress

When you designing a website for client with WordPress, you may not want your client click the “Upgrade” button for any reasons (mostly, by curiosity). We all know that it may cause unusable of customized theme. Here’s how to disable it. Open functions.php of your theme and add following lines.

add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
About these ads

Posted on March 7, 2013, in Web Dev. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 26 other followers

%d bloggers like this: