开发者 | mrpharderwijk |
---|---|
更新时间 | 2020年7月24日 16:29 |
PHP版本: | 3.6.0 及以上 |
WordPress版本: | 5.4.x |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp-json/wp/v2/frontpage
, which outputs the homepage page objectwp-content/plugins/
directory or equivalent.
Once installed, activate WP REST API Frontpage from WordPress plugins dashboard page and you're ready to go. WP REST API will respond to the endpoint with the page object.
Make sure you have selected a static homepage at 'Settings > Reading > Your homepage displays'. Choose 'A static page (select below)', and select a homepage from the drop down menu. Don't forget to safe!