如何阻止WordPress插件更新?

时间:2017-03-15 20:29:06

标签: wordpress plugins

我有一个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
 */
?>

1 个答案:

答案 0 :(得分:0)

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

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

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