|
| 1 | +--- |
| 2 | +title: クイックスタート ガイド |
| 3 | +slug: /quick-start-guide |
| 4 | +--- |
| 5 | + |
| 6 | +import ThisIsQueryApi from '@site/docs/\_fragments/\_this_is_query_api.md'; |
| 7 | + |
| 8 | +# 5 分で WordPress Playground を使い始める |
| 9 | + |
| 10 | +<!-- |
| 11 | +# Start using WordPress Playground in 5 minutes |
| 12 | + --> |
| 13 | + |
| 14 | +WordPress Playground は、次のような場合に役に立ちます。 |
| 15 | + |
| 16 | +<!-- |
| 17 | +WordPress Playground can help you with any of the following: |
| 18 | + --> |
| 19 | + |
| 20 | +import TOCInline from '@theme/TOCInline'; |
| 21 | + |
| 22 | +<TOCInline toc={toc} /> |
| 23 | + |
| 24 | +このページでは、それぞれの手順を解説します。視覚的に学習したい方は、こちらの動画をご覧ください。 |
| 25 | + |
| 26 | +<!-- |
| 27 | +This page will guide you through each of these. Oh, and if you're a visual learner – here's a video: |
| 28 | + --> |
| 29 | + |
| 30 | +<iframe width="752" height="423.2" title="Getting started with WordPress Playground" src="https://video.wordpress.com/v/3UBIXJ9S?autoPlay=false&height=1080&width=1920&fill=true" class="editor-media-modal-detail__preview is-video"></iframe> |
| 31 | + |
| 32 | +## 新しい WordPress サイトを始める |
| 33 | + |
| 34 | +<!-- |
| 35 | +## Start a new WordPress site |
| 36 | + --> |
| 37 | + |
| 38 | +[playground.wordpress.net の公式デモ](https://playground.wordpress.net/)にアクセスするたびに、新しい WordPress サイトが作成されます。 |
| 39 | + |
| 40 | +<!-- |
| 41 | +Every time you visit the [official demo on playground.wordpress.net](https://playground.wordpress.net/), you get a fresh WordPress site. |
| 42 | + --> |
| 43 | + |
| 44 | +その後、ページを作成したり、プラグインやテーマをアップロードしたり、独自のサイトをインポートしたり、通常の WordPress で行うほとんどの操作を実行できます。 |
| 45 | + |
| 46 | +<!-- |
| 47 | +You can then create pages, upload plugins, themes, import your own site, and do most things you would do on a regular WordPress. |
| 48 | + --> |
| 49 | + |
| 50 | +始めるのはとても簡単です ! |
| 51 | + |
| 52 | +<!-- |
| 53 | +It's that easy to start! |
| 54 | + --> |
| 55 | + |
| 56 | +サイト全体はブラウザ内に保存されており、タブを閉じると削除されます。最初からやり直したい場合は、ページを更新してください。 |
| 57 | + |
| 58 | +<!-- |
| 59 | +The entire site lives in your browser and is scraped when you close the tab. Want to start over? Just refresh the page! |
| 60 | + --> |
| 61 | + |
| 62 | +:::info WordPress Playground はプライベートです |
| 63 | + |
| 64 | +作成したものはすべてブラウザ内に保存され、他の場所には**送信されません**。完成したら、サイトを zip ファイルとしてエクスポートできます。または、ページを更新して最初からやり直すこともできます。 |
| 65 | + |
| 66 | +::: |
| 67 | + |
| 68 | +<!-- |
| 69 | +:::info WordPress Playground is private |
| 70 | +
|
| 71 | +Everything you build stays in your browser and is **not** sent anywhere. Once you're finished, you can export your site as a zip file. Or just refresh the page and start over! |
| 72 | +
|
| 73 | +::: |
| 74 | + --> |
| 75 | + |
| 76 | +## ブロック、テーマ、プラグインを試す |
| 77 | + |
| 78 | +<!-- |
| 79 | +## Try a block, a theme, or a plugin |
| 80 | + --> |
| 81 | + |
| 82 | +[/wp-admin/](https://playground.wordpress.net/?url=/wp-admin/) に必要なプラグインやテーマをアップロードできます。 |
| 83 | + |
| 84 | +<!-- |
| 85 | +You can upload any plugin or theme you want in [/wp-admin/](https://playground.wordpress.net/?url=/wp-admin/). |
| 86 | + --> |
| 87 | + |
| 88 | +どのプラグインやテーマを使用すればよいかわからない場合は、次の公式ディレクトリを参照してください。 |
| 89 | + |
| 90 | +<!-- |
| 91 | +If you're not sure which plugin or theme to use, you can explore the official directories here: |
| 92 | + --> |
| 93 | + |
| 94 | +- [WordPress プラグイン ディレクトリ](https://wordpress.org/plugins/) |
| 95 | +- [WordPress テーマ ディレクトリ](https://wordpress.org/themes/) |
| 96 | + |
| 97 | +<!-- |
| 98 | +- [WordPress Plugin Directory](https://wordpress.org/plugins/) |
| 99 | +- [WordPress Theme Directory](https://wordpress.org/themes/) |
| 100 | + --> |
| 101 | + |
| 102 | +URL のプラグインまたはテーマのスラッグを使用して、Playground 経由でそれらをプリインストールします。 |
| 103 | + |
| 104 | +<!-- |
| 105 | +Use the plugin or theme slug from the URL to preinstall theme via Playground. |
| 106 | + --> |
| 107 | + |
| 108 | +クリック数を減らすために、URL に`plugin`または`theme`パラメータを追加することで、 WordPress プラグインディレクトリからプラグインやテーマをプリインストールできます。例えば、coblocks プラグインをインストールするには、次の URL を使用します。 |
| 109 | + |
| 110 | +<!-- |
| 111 | +To save a few clicks, you can preinstall plugins or themes from the WordPress plugin directory by adding a `plugin` or `theme` parameter to the URL. For example, to install the coblocks plugin, you can use this URL: |
| 112 | + --> |
| 113 | + |
| 114 | +https://playground.wordpress.net/?plugin=coblocks |
| 115 | + |
| 116 | +または、`pendant` テーマをプリインストールするには、次の URL を使用します。 |
| 117 | + |
| 118 | +<!-- |
| 119 | +Or this URL to preinstall the `pendant` theme: |
| 120 | + --> |
| 121 | + |
| 122 | +https://playground.wordpress.net/?theme=pendant |
| 123 | + |
| 124 | +これらのパラメータを組み合わせたり、複数のプラグインを追加したりすることもできます。 |
| 125 | + |
| 126 | +<!-- |
| 127 | +You can also mix and match these parameters and even add multiple plugins: |
| 128 | + --> |
| 129 | + |
| 130 | +https://playground.wordpress.net/?plugin=coblocks&plugin=friends&theme=pendant |
| 131 | + |
| 132 | +<ThisIsQueryApi /> |
| 133 | + |
| 134 | +:::info プラグインディレクトリは WordPress Playground では機能しません |
| 135 | + |
| 136 | +WordPress サイトはインターネットにデータを送信しないため、プラグインは手動でインストールする必要があります。`/wp-admin/`内の WordPress プラグインディレクトリにアクセスすることはできません。 Query API メソッドは一見矛盾しているように見えますが、実際にはプラグインのアップロードフォームと同じものを使用しています。 |
| 137 | + |
| 138 | +::: |
| 139 | + |
| 140 | +<!-- |
| 141 | +:::info Plugin directory doesn't work in WordPress Playground |
| 142 | +
|
| 143 | +Plugins must be installed manually because your WordPress site doesn't send any data to the internet. You won't be able to navigate the WordPress plugin directory inside `/wp-admin/`. The Query API method may seem to contradict that, but behind the scenes it uses the same plugin upload form as you would. |
| 144 | +
|
| 145 | +::: |
| 146 | + --> |
| 147 | + |
| 148 | +## サイトを保存する |
| 149 | + |
| 150 | +<!-- |
| 151 | +## Save your site |
| 152 | + --> |
| 153 | + |
| 154 | +WordPress Playground サイトを 1 回のブラウザ セッションよりも長く保持するには、zip ファイルとしてエクスポートできます。 |
| 155 | + |
| 156 | +<!-- |
| 157 | +To keep your WordPress Playground site for longer than a single browser session, you can export it as a zip file. |
| 158 | + --> |
| 159 | + |
| 160 | +上部バーの「エクスポート」ボタンを使用します。 |
| 161 | + |
| 162 | +<!-- |
| 163 | +Use the "Export" button in the top bar: |
| 164 | + --> |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | +エクスポートされたファイルには、構築したサイト全体が含まれています。 PHP と SQLite をサポートするサーバーであればどこでもホストできます。 WordPress のコアファイル、プラグイン、テーマ、その他サイトに追加したすべてのファイルが含まれています。 |
| 169 | + |
| 170 | +<!-- |
| 171 | +The exported file contains the complete site you've built. You could host it on any server that supports PHP and SQLite. All WordPress core files, plugins, themes, and everything else you've added to your site are in there. |
| 172 | + --> |
| 173 | + |
| 174 | +SQLite データベースファイルもエクスポートに含まれており、`wp-content/database/.ht.sqlite`にあります。ドットで始まるファイルは、ほとんどのオペレーティングシステムでデフォルトで非表示になっているため、ファイルマネージャーで「隠しファイルを表示する」オプションを有効にする必要がある場合があります。 |
| 175 | + |
| 176 | +<!-- |
| 177 | +The SQLite database file is also included in the export, you'll find it `wp-content/database/.ht.sqlite`. Keep in mind that files starting with a dot are hidden by default on most operating systems so you might need to enable the "Show hidden files" option in your file manager. |
| 178 | + --> |
| 179 | + |
| 180 | +## 保存したサイトを復元する |
| 181 | + |
| 182 | +<!-- |
| 183 | +## Restore a saved site |
| 184 | + --> |
| 185 | + |
| 186 | +WordPress Playground のインポートボタンを使用して、保存したサイトを復元できます。 |
| 187 | + |
| 188 | +<!-- |
| 189 | +You can restore the site you saved by using the import button in WordPress Playground: |
| 190 | + --> |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | +## 特定の WordPress または PHP バージョンを使用する |
| 195 | + |
| 196 | +<!-- |
| 197 | +## Use a specific WordPress or PHP version |
| 198 | + --> |
| 199 | + |
| 200 | +最も簡単な方法は、[公式デモサイト](https://playground.wordpress.net/)のバージョンスイッチャーを使用することです。 |
| 201 | + |
| 202 | +<!-- |
| 203 | +The easiest way is to use the version switcher on [the official demo site](https://playground.wordpress.net/): |
| 204 | + --> |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | +:::info プラグインまたはテーマをテストする |
| 209 | + |
| 210 | +数多くの WordPress および PHP バージョンとの互換性テストは、いつも面倒でした。 WordPress Playground を使えば、このプロセスが楽になります。ぜひご活用ください ! |
| 211 | + |
| 212 | +::: |
| 213 | + |
| 214 | +<!-- |
| 215 | +:::info Test your plugin or theme |
| 216 | +
|
| 217 | +Compatibility testing with so many WordPress and PHP versions was always a pain. WordPress Playground makes this process effortless – use it to your advantage! |
| 218 | +
|
| 219 | +::: |
| 220 | + --> |
| 221 | + |
| 222 | +:::info プラグインまたはテーマをテストする |
| 223 | + |
| 224 | +数多くの WordPress および PHP バージョンとの互換性テストは、いつも面倒でした。 WordPress Playground を使えば、このプロセスが楽になります。ぜひご活用ください ! |
| 225 | + |
| 226 | +::: |
| 227 | + |
| 228 | +<!-- |
| 229 | +:::info Test your plugin or theme |
| 230 | +Compatibility testing with so many WordPres and PHP versions was always a pain. WordPress Playground makes this process effortless – use it to your advantage! |
| 231 | +::: |
| 232 | + --> |
| 233 | + |
| 234 | +また、`wp` および `php` クエリ パラメータを使用して、適切なバージョンがすでにロードされた状態で Playground を開くこともできます。 |
| 235 | + |
| 236 | +<!-- |
| 237 | +You can also use the `wp` and `php` query parameters to open Playground with the right versions already loaded: |
| 238 | + --> |
| 239 | + |
| 240 | +- https://playground.wordpress.net/?wp=6.5 |
| 241 | +- https://playground.wordpress.net/?php=7.4 |
| 242 | +- https://playground.wordpress.net/?php=8.2&wp=6.2 |
| 243 | + |
| 244 | +<ThisIsQueryApi /> |
| 245 | + |
| 246 | +:::info メジャーバージョンのみ |
| 247 | +`wp=6.2` や `php=8.1` のようなメジャーバージョンを指定すると、そのバージョンラインの最新リリースが期待されます。ただし、古いマイナーバージョンを指定することはできないため、`wp=6.1.2` や `php=7.4.9` は動作しません。 |
| 248 | +::: |
| 249 | + |
| 250 | +<!-- |
| 251 | +:::info Major versions only |
| 252 | +
|
| 253 | +You can specify major versions like `wp=6.2` or `php=8.1` and expect the most recent release in that line. You cannot, however, request older minor versions so neither `wp=6.1.2` nor `php=7.4.9` will work. |
| 254 | +::: |
| 255 | + --> |
| 256 | + |
| 257 | +## WXR ファイルをインポートする |
| 258 | + |
| 259 | +<!-- |
| 260 | +## Import a WXR file |
| 261 | + --> |
| 262 | + |
| 263 | +[/wp-admin/](https://playground.wordpress.net/?url=/wp-admin/import.php) に WXR ファイルをアップロードすることで、WordPress エクスポートファイルをインポートできます。 |
| 264 | + |
| 265 | +<!-- |
| 266 | +You can import a WordPress export file by uploading a WXR file in [/wp-admin/](https://playground.wordpress.net/?url=/wp-admin/import.php). |
| 267 | + --> |
| 268 | + |
| 269 | +[JSON ブループリント](/blueprints)も使用できます。詳しくは[ブループリントの使い方](/blueprints/getting-started)をご覧ください。 |
| 270 | + |
| 271 | +<!-- |
| 272 | +You can also use [JSON Blueprints](/blueprints). See [getting started with Blueprints](/blueprints/getting-started) to learn more. |
| 273 | + --> |
| 274 | + |
| 275 | +これは上記のインポート機能とは異なります。インポート機能は、データベースを含むサイト全体をエクスポートします。このインポート機能は、 WXR ファイルを既存のサイトにインポートします。 |
| 276 | + |
| 277 | +<!-- |
| 278 | +This is different from the import feature described above. The import feature exports the entire site, including the database. This import feature imports a WXR file into an existing site. |
| 279 | + --> |
| 280 | + |
| 281 | +## WordPress Playground でアプリを構築する |
| 282 | + |
| 283 | +<!-- |
| 284 | +## Build apps with WordPress Playground |
| 285 | + --> |
| 286 | + |
| 287 | +WordPress Playground はプログラム可能なので、WordPress アプリを構築したり、プラグインのデモを設定したり、さらには設定不要のローカル開発環境として使用したりすることもできます。 |
| 288 | + |
| 289 | +<!-- |
| 290 | +WordPress Playground is programmable which means you can build WordPress apps, setup plugin demos, and even use it as a zero-setup local development environment. |
| 291 | + --> |
| 292 | + |
| 293 | +WordPress Playground を使用した開発の詳細については、[開発クイック スタート](/developers/build-your-first-app) セクションをご覧ください。 |
| 294 | + |
| 295 | +<!-- |
| 296 | +To learn more about developing with WordPress Playground, check out the [development quick start](/developers/build-your-first-app) section. |
| 297 | + --> |
0 commit comments