25% off ProSNIPC25OFF

REST Endpoint: Recent Posts by Type

Registers a GET /wp-json/scseed/v1/recent-posts endpoint that returns the most recent published posts for any public post type, with count and type query params.

PHPProby SnipCraft

This is a Pro snippet

The full code for “REST Endpoint: Recent Posts by Type” is part of the SnipCraft Pro library. Get every Pro snippet and module, and import them in one click.

Get SnipCraft Pro

Questions about Pro? Contact us.

#endpoint#json#posts#rest-api