Create Your Own WordPress Rest Endpoints

Paulund is full of premium tutorials and support to help with your development

Sign up to get full access to all tutorials.

Get Started

Login to your account


As the REST API is still relatively new there might be some endpoints that don't currently exist such as getting the post archives where you would normally use the function wp_get_archives. This function will return a list of months with the post count next to that month. In this tutorial we're going to create our own WordPress endpoint that returns a list of months along with the post count with that month. First Create A WordPress Plugin To create a WordPress plugin you just need to create . . .

Get Started