Making A WordPress Plugin That Uses Service APIs, “From Soup To Nuts”
An increasingly large number of publicly available APIs provide powerful services to expand the functionality of our applications. WordPress is an incredibly dynamic and flexible CMS that powers everything from small personal blogs to major e-commerce websites and everything in between. Part of what makes WordPress so versatile is its powerful plugin system, which makes it incredibly easy to add functionality.
We will walk through how I made GitHub Pipeline, a plugin that allows you to display data from the GitHub API on WordPress pages using shortcodes. I’ll give specific examples and code snippets, but consider the technique described here a blueprint for how to consume any service API with a plugin. We’ll start from the beginning, but a degree of familiarity with WordPress and plugin development is assumed, and we won’t spend time on beginner topics, like installing WordPress or Composer.
The post Making A WordPress Plugin That Uses Service APIs, “From Soup To Nuts” appeared first on Smashing Magazine.
From our sponsors: Making A WordPress Plugin That Uses Service APIs, “From Soup To Nuts”