Stop Plugin from showing updates
While developing WordPress site most of the time we use different plugin for the better support of the site.And some times we as a developer make some customization in the default plugin files for our required functionality.
The plugin files are always get updated from its developer and the updates for newer version are notified to us by the wordpress. Suppose we have make some customization in code in the original plugin’s file then that changes will be removed if we update the plugin file to newer version.So to solve this problem we have to stop the automatic update option of the plugin or update notification of the plugin.
To do this we can have two Methods.
That are,
Method 1:
just add below code to the function.php file of your current theme ,
# 3.0: remove_action( 'load-update-core.php', 'wp_update_plugins' ); add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); |
if you are using wordpress 3.0 or higher version.
# 2.8 to 3.0: remove_action( 'load-plugins.php', 'wp_update_plugins' ); remove_action( 'load-update.php', 'wp_update_plugins' ); remove_action( 'admin_init', '_maybe_update_plugins' ); remove_action( 'wp_update_plugins', 'wp_update_plugins' ); add_filter( 'pre_transient_update_plugins', create_function( '$a', "return null;" ) ); |
for wordpress version 2.8 to 3.0
# 2.3 to 2.7: add_action( 'admin_menu', create_function( '$a', "remove_action( 'load-plugins.php', 'wp_update_plugins' );") ); add_action( 'admin_init', create_function( '$a', "remove_action( 'admin_init', 'wp_update_plugins' );"), 2 ); add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_update_plugins' );"), 2 ); add_filter( 'pre_option_update_plugins', create_function( '$a', "return null;" ) ); |
for the wordpress version 2.3 to 2.7
This method stops all the updates.This also stops update notification for the theme.
Method 2:
Just change the version of the specified WordPress plugin to very high number from its header file.
For ex,
Plugin Name: Plugin name Plugin URI: Plugin URL Version: 1000 Author: Arpi Patel Author URI: shareprogrammingtips.com |
You can select any of the above method to stop the updates of the plugin.
You may like to read this also....
1 Comment to “Stop Plugin from showing updates”
Post comment
Search in this website
our sponsors
latest comments
- shinto peter on How to configure mail from localhost ( wamp ) using PHP?
- tammylleanne on Implementation limitation of c programming language
- Deepak on How to access/unblock songs.pk in india?
- Deepak on How to access/unblock songs.pk in india?
- prk on How to access/unblock songs.pk in india?
Find us on Facebook
Top Authors
Find us on stackoverflow
Polls
My Bookmarks
- Audio/video Recorder & player application based on MATLAB
- check dependency of your binary
- defination of all standard c programming language function
- Great Question-Answer on c programming
- know what your c code means
- Limition of c programming language
- List of all version of c programming language
- Online c compiler
- php freelancing work
- some more stuff on C programming language
- Volatile Keyword in Embedded System
- Write Android application in c language
Hello,
Thank you four nice writing. It will help me for my research on Recycle.
Thanks.