Home > CMS Tutorial > WordPress > body text

A brief analysis of how to remove update prompts for WordPress plug-ins

青灯夜游
Release: 2023-03-03 19:57:08
Original
1713 people have browsed it

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!

A brief analysis of how to remove update prompts for WordPress plug-ins

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/
*/
Copy after login

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:

A brief analysis of how to remove update prompts for WordPress plug-ins

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/
*/
Copy after login

-- 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!

Related labels:
source:ludou.org
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template