LoginSignup
106
119

More than 5 years have passed since last update.

WordPress FTPなしでプラグインダウンロードできる設定

Last updated at Posted at 2012-08-02

この設定を忘れてプラグインをインストールしようとすると、FTPのアカウントの入力がどうのこうのと言われて「FTPなんか使うかアホ!」とWordPressを罵るハメになるので、そうならないためにこれを書きます。

wp-config.php に書きます

wp-config.php
<?php
define('FS_METHOD', 'direct');

下のコードよりも上に書かないと効かないので気をつけてください。

wp-config.php
<?php
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
106
119
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
106
119