【问题标题】:How to stop WordPress plugin from updating?如何阻止WordPress插件更新?
【发布时间】:2017-08-06 19:12:40
【问题描述】:

我有一个 WordPress 插件,我根据自己的需要进行了修改。当我将它推送到站点时,它会在有新的更新覆盖我的更改时自动更新。我想断开它与 WordPress 插件目录的连接,以便它停止更新。我需要更改哪些功能?

<?php

/**
 * The plugin bootstrap file
 *
 * This file is read by WordPress to generate the plugin information in the plugin
 * admin area. This file also includes all of the dependencies used by the plugin,
 * registers the activation and deactivation functions, and defines a function
 * that starts the plugin.
 *
 * @link              http://www.acekyd.com
 * @since             1.0.0
 * @package           Display_Medium_Posts
 *
 * @wordpress-plugin
 * Plugin Name:       Display Medium Posts
 * Plugin URI:        https://github.com/acekyd/display-medium-posts
 * Description:       Display Medium Posts is a wordpress plugin that allows users display posts from medium.com on any part of their website.
 * Version:           3.0
 * Author:            AceKYD
 * Author URI:        http://www.acekyd.com
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       display-medium-posts
 * Domain Path:       /languages
 */
?>

【问题讨论】:

    标签: wordpress plugins


    【解决方案1】:

    如果此插件在wordpress.org 上公开托管:

    将顶部评论部分中的 Plugin Name: Display Medium Posts 更改为不同且独特的内容,例如Plugin Name: Display Medium Posts - Fahad's Edition。它不会再自动更新了。

    为了使更改立即生效,您需要从wp_options 表中删除_site_transient_update_plugins。参见例如Can I remove transients in the wp_options table of my WordPress install?

    【讨论】:

    • 在我最后一次尝试中,我更改了插件的名称,但它仍然得到了更新。
    • @FahadUddin 自己试过了,您需要清除网站的临时缓存 - 请参阅更新后的答案。
    猜你喜欢
    • 1970-01-01
    • 2017-08-13
    • 2018-12-06
    • 2013-07-27
    • 2012-02-28
    • 1970-01-01
    • 2013-10-25
    • 2018-05-04
    • 1970-01-01
    相关资源
    最近更新 更多