开发者 | Websolut Org |
---|---|
更新时间 | 2025年9月11日 09:57 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
GET /wp-json/static-page-publisher/v1/verify-token
— Verify if a token is valid.
POST /wp-json/static-page-publisher/v1/update-landing
— Upload and deploy a base64-encoded ZIP as the new landing page.
Ideal for teams automating content deployment from Figma, design systems, or CI/CD pipelines./wp-content/plugins/
or install via Plugins > Add New.X-API-Token: yourtoken
or Authorization: Bearer yourtoken
?token=yourtoken
Send a POST request with a JSON body containing a base64 ZIP (zip_base64
) to /wp-json/static-page-publisher/v1/update-landing
using your access token.
Yes, the plugin automatically serves the uploaded landing page on your site’s front page. The original theme files are not modified.
Tokens are stored in the WordPress database and should be treated like API keys. Rotate tokens periodically.