內容簡介
這款 WordPress 外掛可以在多個拆解前端中提供預覽,並且可以與 Decoupled Kit Next.js WordPress Starter 一起使用,提供預先配置的文章和頁面內容。它還具備多項功能,例如在編輯文章/頁面時進行預覽、配置多個預覽站點、指定每個預覽站點應用的文章類型等等。要使用此外掛,只需要在 WordPress 的後台中導航到「設置 - 預覽站點」,並進行標籤、URL、密鑰、預覽類型以及內容類型等設置即可。
問題與答案:
1. 這款 WordPress 外掛的主要功能是什麼?
- 它可以在多個拆解前端中提供預覽,並且可以與 Decoupled Kit Next.js WordPress Starter 一起使用,提供預先配置的文章和頁面內容。
2. 這款外掛有哪些功能?
- 它可以在編輯文章/頁面時進行預覽、配置多個預覽站點、指定每個預覽站點應用的文章類型等等。
3. 如何進行此外掛的設置?
- 在 WordPress 的後台中導航到「設置 - 預覽站點」,並進行標籤、URL、密鑰、預覽類型以及內容類型等設置即可。
外掛標籤
開發者團隊
原文外掛簡介
This plugin intends to provide a single home for preview on a variety of decoupled front-ends. Can be used with the Decoupled Kit Next.js WordPress Starter for pre-configured examples for post and page content.
Features
Preview while editing a Post/Page.
Configure multiple preview sites.
Specify the post types (Post and Pages) that each preview site applies to.
Configuration
In the WordPress Admin Dashboard, navigate to Settings -> Preview Sites, add one or more preview sites, and configure the following:
Label: The name of the site.
URL: The URL of the decoupled site you are providing preview data to.
Secret: A token that will be passed to your decoupled site used to limit access to the preview.
Preview Type: The type of preview site – currently only NextJS is supported.
Content Types: The post types (like Post and Page) that this preview site applies to.
For more information on how preview data can be consumed on your front-end site, see implementing decoupled preview.
