Takes starred posts from Feedbin, my RSS feed syncing engine of choice, and turns them into Indie Likes.
You probably don't have the same setup as me (you might use a different reader or use a different plugin or post type for IndieWeb Likes), but perhaps you can reuse some of this code to fit your purposes.
This plugin fetches your starred posts from Feedbin and creates new Indie Likes posts for them on your WordPress site. The plugin sets up a cron job to fetch new starred posts from Feedbin every hour.
- Upload the plugin files to the
/wp-content/plugins/feedbin-stars-to-indie-likes
directory, or download a zip of this repo and install the plugin through the WordPress plugins screen. - Activate the plugin.
- Use the Settings->Feedbin Stars to Indie Likes screen to configure the plugin.
- Make sure the Indieblocks plugin is installed and activated
This plugin requires the IndieBlocks plugin by Jan Boddez to be installed and activated. It is what I prefer to power my website's Likes.
- Go to the plugin settings page at Tools->Feedbin Stars to Indie Likes
- Enter your Feedbin username and password. Feedbin's API uses basic auth, not API keys.
- Select the author you want to attribute the likes to from the dropdown menu of existing authors
- Enter the date you want to start fetching new starred posts after in the format
YYYY-MM-DDTHH:MM:SS
. This is there because I already had a lot of starred posts but didn't want to import them all. - Click 'Save Changes'
- Fixed bug with cron and plugin identification, 2022-12-29
- Initial release, 2022-12-27