An exploration of using the Dataview component inside of a plugin
The process to build this project is explained in the following article of the WordPress Developer Blog:
- Using Data Views to display and interact with data in plugins
- Actions from Data Views: Adding images to the Media Library
- Set up a local WordPress development environment.
- Clone / download this repository into the wp-content/pluginsfolder.
- Navigate to the wp-content/plugins/devblog-dataviews-pluginfolder in the command line.
- Run npm installto install the plugin's dependencies within a/node_modules/folder.
- Run npm run startto compile and watch source files for changes while developing.
- Login to your local WordPress development environment, navigate from Dashboard > Plugins and activate "DevBlog Dataviews Plugin"
Refer to package.json for additional commands.