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/plugins
folder. - Navigate to the
wp-content/plugins/devblog-dataviews-plugin
folder in the command line. - Run
npm install
to install the plugin's dependencies within a/node_modules/
folder. - Run
npm run start
to 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.