hosting tutorials WeChat Top

👋🏼Welcome to my WP-Host blog where I am excited to share my knowledge and expertise on WordPress hosting and website construction tutorials with you. Let’s connect and learn from each other! You can reach me at info@yrshare.com.

Email Me

(如果你会中文,可以点击微信图标与我联系。)

扫一扫加我

注:因个人英文水平有限,所以暂时只能为懂中文的朋友提供wordpress建站服务

微信:18200592859 或 yrwordpress

How to disable the update prompt of WordPress plugin?(Two methods)

2023031903580518

How to disable the update prompt of WordPress plugin? This WordPress tutorial will share with you two ways to disable WordPress plugin updates. Why do you want to disable WordPress plugin updates? Because sometimes a new version of a plugin is not necessarily a good thing, it may have some problems.

【WP-Host/悦然wordpress建站】

If you use WordPress to build a site, then your website will install some WordPress plug -ins, and the plug -in is one of the biggest advantages of the WordPress system.

But there are many WordPress plugins that are updated very frequently, and sometimes we don’t need to update at all.

For example, if you make some modifications to the plug-in yourself, if you update the plug-in, it may become invalid or even unusable, which will affect our use.

So is there any way to simply and quickly prohibit the wordpress plugin from updating the prompt?
The following【WP-Host/悦然wordpress建站】will share with you two methods.

Method 1: Modify the plug-in version number

WordPress plugin update prompt status

2023031903461688

As shown in the picture above, your wordpress website background should also have some such plugin update prompts. In most cases, we can update directly, but in some cases it cannot be updated. For example, the new version of the plugin may not be compatible with your current theme. If
You are using a Chinese plug-in and cannot update it casually.

But if we ignore this update prompt, the system will continue to query the database, which consumes some system resources and reduces website performance and website opening speed.

WordPress plugin modification version number

2023031903463035

Enter the background of the wordpress website, open [Plug-in]-[Plug-in Editor], then select the plug-in to be modified on the right side of the page, and then enter the corresponding file to modify the version number.

For example, what we are going to modify here is the [Duplicate Post] plug-in. After selecting it, find [Version] in the middle code window, and modify the following number (that is, the version number). It can be changed to a new version or Change to a higher version, and then click the [Update File] button at the bottom.

2023031903464393

After the modification is completed, refresh the background, and you can see that the update prompt has disappeared in the plug-in center.

Method 2: use code

We only need one line of code to achieve the effect, the code is as follows:

/** Turn off Word Press automatic updates
 */
define('DISALLOW_FILE_MODS',true);

You can add the above code to [wp-config.php] in the root directory of the current wordpress website, save it and it will take effect.

After the above code is added, the update of WordPress main program, themes, and plugins will be completely disabled, and there will be no update prompts in the background, but themes and plugins can no longer be installed in the background. (You can upload files using FTP to install)

如果你是使用wordpress建站,那么网站你的网站或多或少都会安装一些wordpress插件,插件是wordpress系统最大的优势之一。

但是有很多wordpress插件的更新都非常频繁,而有时我们根本就不需要更新。比如你自己对插件做了一些修改,如果更新插件就有可能失效,甚至不能用,这就比较影响我们使用了。

那么有什么办法可以简单快速的禁止wordpress插件出现更新提示呢?下面【WP-Host/悦然wordpress建站】就给大家分享两个的方法。

方法一:修改插件版本号

wordpress插件更新提示状态

2023031903461688

如上图所示,你的wordpress网站后台应该也有一些这种插件更新提示,大多数情况下我们可以直接更新,但是有些情况是不能更新的,比如新版本的插件可能不兼容你的当前主题,如果你使用的是汉化插件也不能随便更新。

但是我们不管这个更新提示的话系统就会不断的查询数量库,这就耗费一些系统资源,降低网站性能和网站打开速度。

wordpress插件修改版本号

2023031903463035

进入wordpress网站后台,打开【插件】-【插件编辑器】,然后 页面右侧选择要修改的插件,然后进入对应的文件修改版本号即可。比如我们这里准备修改的是【Duplicate Post】这个插件,选择之后在中间的代码窗口中找到【Version】,修改后面的数字(也就是版本号)就可以了,可以改成是新版本,也可以改成更高版本,然后点底部的【更新文件】按钮。

2023031903464393

修改完成之后刷一下后台,在插件中心可以看到更新提示消失了。

方法二:使用代码

我们只需要一行代码就可以实现效果,代码如下:

/** 关闭WordPress自动更新升级 */
define('DISALLOW_FILE_MODS',true);

大家可以把上面的代码添加到当前wordpress网站根目录的【wp-config.php】中,保存即可生效。

以上代码添加之后会完全禁用wordpress主程序、主题、插件的更新,后台不会再有更新提示,不过这样后台也不能再安装主题和插件。(可以使用FTP上传文件来安装)

WordPress Hosting / 悦然wordpress建站

WordPress Hosting / 悦然wordpress建站

【WordPress Hosting / 悦然wordpress建站】I am a WordPress hobby from China, and I like to communicate with friends from all over the world to learn WordPress website building and maintenance related knowledge.