WordPressのカスタマイズ方法やプラグインレビューを中心に、パソコン/動物/植物のことなどを紹介するホームページです

【WordPress】本体やテーマ、プラグインの自動更新を無効にする方法

公開日:2015(平成27)年5月8日/最終更新日:

Knowledge Base Wordpress パソコン カスタマイズ 設定



質問(Question)

wordpressのテーマの自動更新をしないようにするには、
/*
Theme Name: Twenty Thirteen
Theme URI: http://wordpress.org/themes/twentythirteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.
*/
どれを削除or書き換えたらいいですか?

回答(Answer)

WordPressがインストールされているフォルダの中にあるconfig.phpに下の行を追記します

define( ‘AUTOMATIC_UPDATER_DISABLED’, true );

上記コードを追記すると
・プラグインの自動更新
・テーマの自動更新
・コアファイルの自動更新
・翻訳ファイルの自動更新

が無効になります。