In the last month I worked on two new plugins for WordPress that connect to Discord and Twitch to write a message in a Discord server’s channel when a new post is published on a site, and to get the status of a Twitch stream with a shortcode and/or a widget.
I worked on them live on my Twitch channel during two different Coding Day events, you can find the recordings in the Past Transmissions on Twitch.
I’m happy to announce that they are finally available on WordPress.org!
I worked on a site for a friend some time ago and she is a streamer on Twitch. What I wanted to add is a widget in the header that shows her Twitch stream status, so when she is live, if someone goes to the site, they can see that, and eventually check her live Twitch stream.
Knowing if someone is live via the API that Twitch provides is very easy. Let’s check how I did that.
Before that, there were plugins to do it, but now that it’s in the core, it’s way easier to add a new bulk action, potentially you only need three functions!
Let’s see an example together about how to add a Move to Drafts bulk action, I know that is already possible if you bulk edit posts, but it involves many clicks, while with a bulk action is only a couple clicks!