manifest / integrations / show-widgets-in-rest-api
Show widgets in REST API
Show widgets in REST API.
★ 1stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/spacedmonkey/show-widgets-in-rest-api/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Show widgets in REST API.
Description
A simple plugin to add block data in json format into the rest api. Once installed, there will be two new fields added to the rest api, has_blocks and blocks.
An example of output, can be found in the screenshots.
Technical Notes
- Requires PHP 5.6+.
- Requires WordPress 5.9+.
- Issues and Pull requests welcome on the GitHub repository: https://github.com/spacedmonkey/show-widgets-in-rest-api
Installation
Using The WordPress Dashboard
- Navigate to the 'Add New' in the plugins dashboard
- Search for 'show-widgets-in-rest-api'
- Click 'Install Now'
- Activate the plugin on the Plugin dashboard
Uploading in WordPress Dashboard
- Navigate to the 'Add New' in the plugins dashboard
- Navigate to the 'Upload' area
- Select
show-widgets-in-rest-api.zipfrom your computer - Click 'Install Now'
- Activate the plugin in the Plugin dashboard
Using FTP
- Download
show-widgets-in-rest-api.zip - Extract the
show-widgets-in-rest-apidirectory to your computer - Upload the
show-widgets-in-rest-apidirectory to the/wp-content/plugins/directory - Activate the plugin in the Plugin dashboard
Changelog
1.0.0
- First version.