Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
118
Help us understand the problem. What is going on with this article?

More than 5 years have passed since last update.

@mzdakr

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

この設定を忘れてプラグインをインストールしようとすると、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');
118
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
118
Help us understand the problem. What is going on with this article?