This plugin creates a "Poll" WordPress widget that allows users to vote on their favorite blog post utilizing the WordPress REST API and Vue.js.
- Drop the
vuepluginfolder in thewp-content/plugins/directory of your WordPress installation - Activate the plugin through the
Pluginsmenu in WordPress - Go to
Appearance => Widgetsand add thePollwidget to your widget area - Go to
Users => ProfileandAdd a New Application Password. Update lines 12 & 13 infunctions/wp-enqueue-script.phpwith the username and application password. This is required for logged out users to be able toPOSTtheir vote via the WordPress REST API. - Confirm or publish a few posts to be able to vote on ;)
- Migrate from Webpack to Vite
January 25, 2023
- Upgrade from Vue 2 to Vue 3
March 30, 2022
One year from my initial commit! I've entirely overhauled the plugin.
- Now utilizing npm
- Refactored Vue template literals into single-file components
- Compiling JavaScript and CSS assets via Webpack Mix
- Organized PHP functions via includes
March 28, 2021
- Initial commit