Posted on: 2012/10/19 WordPress マルチサイトの新規サイト作成時にカスタム初期設定とカスタム初期データを設定しておく WordPressでマルチサイトを構築する場合、連なる複数のサイト同士はなんらかの関連性を持っているはずです。よって、マルチサイトにおいては、初期設定と初期データをカスタム設定した状態で新規サイトを作成できると良いです。 例えば、ディフォルトテーマを設定しておいたり、共通カテゴリーを初期データとして登録しておく、などです。 一般的にマルチサイトでは、プラグインとテーマは一括で有効化できます。 カスタム投稿タイプやカスタムタクソノミーはテーマフォルダ内のfunctions.phpで定義しておけます。 しかし、テーマの選択や、パーマリンク設定、カテゴリーの入力などは、サイトを追加する毎に設定しなくてはなりません。 この最後の作業を、初期設定と初期デ