Skip to content

WordPress Restful API, custom endpoints for posts, pages and products.

Notifications You must be signed in to change notification settings

alvics/custom-wp-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Custom WordPress Restful API Plugin

Custom endpoints for posts, pages and products.

A cleaner call back which returns an array of ojbects in JSON with the post ID, title, content, name, image thumbnails (small,medium,large) only.

How to use:

The custom endpoints examples-

  • eg. your domain/wp-json/api/v1/posts
  • eg. wp-json/api/v1/pages
  • eg. /wp-json/api/v1/product
Returns json

http://<your domain>/wp-json/api/v1/posts

Return a single post only

Add your slug at the end -

  • eg. your domain/wp-json/api/v1/posts/how-to-sell-online

http://<your domain>/wp-json/api/v1/posts/<slug-name>

About

WordPress Restful API, custom endpoints for posts, pages and products.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages