Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 14 days 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 (12 months ago)
- Default Branch: main
- Last Pushed: 2024-05-25T14:27:16.000Z (6 months ago)
- Last Synced: 2024-10-24T04:06:16.781Z (23 days ago)
- Language: PHP
- Size: 194 KB
- Stars: 15
- 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/).