# マルチサイト

## Networkネットワーク内の他のブログからデータを取得する

可能だが、高くつく

```php
switch_to_blog( $blog_id );
// Do something
restore_current_blog();
```

`restore_current_blog`は `switch_to_blog`への最後の呼び出しを取り消しますが、これは1ステップのみによってなので、`switch_to_blog`を再度呼びだす前に`restore_current_blog`をつねに呼び出します。

## ネットワーク内のブログを一覧表示する

可能だが、大きなネットワークではスケールせず、高くつく

## ドメインマッピング

ドメインマッピングのプラグインのメモ


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.wptherightway.org/japanese/multisite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
