https://github.com/bacoords/example-wp-settings
This is an example of a JavaScript and WP REST API-powered WordPress settings page.
https://github.com/bacoords/example-wp-settings
Last synced: over 1 year ago
JSON representation
This is an example of a JavaScript and WP REST API-powered WordPress settings page.
- Host: GitHub
- URL: https://github.com/bacoords/example-wp-settings
- Owner: bacoords
- Created: 2023-11-18T22:47:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-25T14:27:16.000Z (about 2 years ago)
- Last Synced: 2025-05-06T21:05:11.734Z (over 1 year ago)
- Language: PHP
- Size: 194 KB
- Stars: 16
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Example WP Settings Page
This is an example of a WordPress settings page. It uses the WordPress [Settings API](https://codex.wordpress.org/Settings_API), [REST API](https://developer.wordpress.org/rest-api/), and [Gutenberg Component Library](https://developer.wordpress.org/block-editor/components/) to create a JavaScript-powered settings page with a tabbed interface.

## Development
This plugin was scaffolded with [@wordpress/create-block](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/). If you'd like to develop from this repository, first install all of the dependencies:
`npm install`
Then run the build process in a watch mode:
`npm start`
## Running Locally
To use the included local environment, make sure Docker is running and then run the following command:
`npm run env start`
and visit [http://localhost:8888/wp-admin](http://localhost:8888/wp-admin).
You should be able to log in with Username: `admin` and Password: `password`.
[Learn more about wp-env](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/).