Home >CMS Tutorial >WordPress >A brief analysis of how to remove update prompts for WordPress plug-ins
How to remove the update prompt for WordPress plug-in? The following article will share with you a simple method to remove WordPress plug-in update prompts. I hope it will be helpful to you!
Note: The method provided in this article is to remove the update prompt for a specific version of a plug-in, rather than completely removing the WordPress plug-in update prompt function.
I believe that friends who use WordPress have installed many plug-ins, and plug-in updates are also very frequent. Sometimes we make some changes to the plug-in to adapt to our own needs, and the changed plug-in fully meets the needs. Sometimes the new version of the plug-in just adds some language packs or only makes some minor modifications, and sometimes the author is bored. It’s okay to add our own Bobaiyou external links to the plug-ins, so we don’t want to update these plug-ins, but WordPress always prompts that the plug-ins have been updated, which is uncomfortable to watch. What should we do?
For a certain plug-in, use a text editor to open the main PHP file in the plug-in directory (as for which one is the main one, find it yourself), a WordPress plug-in standard comment similar to the following will appear in the header of the file:
/* Plugin Name: Login to view all Plugin URI: https://www.ludou.org/wordpress-plugin-login-to-view-all Description: Login to view all Version: 1.0 Author: Ludou Author URI: https://www.ludou.org/ */
Version: 1.0
is the version number of the plug-in. Now the version of the plug-in on the official server has been upgraded to 2.0, and the WordPress program will automatically obtain the plug-in. The version number is different from the version number on the official server. If 1.0 is different from 2.0, you will be prompted that the plug-in has been updated. To remove this update prompt, all we have to do is to forge the latest version number. In fact, the plug-in has not been updated. The latest version number of the plug-in can be found on the official homepage of the plug-in, such as:
The latest version number of this plug-in is Version:2.0. We just need to change the version number in the plug-in comment just now to the latest version number 2.0, so that WordPress will no longer You are prompted to upgrade the plug-in to 2.0. As for the plug-in being upgraded to 3.0 in the future, you will still be prompted:
/* Plugin Name: Login to view all Plugin URI: https://www.ludou.org/wordpress-plugin-login-to-view-all Description: Login to view all Version: 2.0 Author: Ludou Author URI: https://www.ludou.org/ */
-- End--
Recommended study: "WordPress Tutorial》
The above is the detailed content of A brief analysis of how to remove update prompts for WordPress plug-ins. For more information, please follow other related articles on the PHP Chinese website!