Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/resonantdoghouse/wpr-endpoints/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WP Rest API Endpoints
Setup & Usage
To post you will need to auth with Basic Auth, JWT Auth, or add a localized script.
Fastest setup for testing
- Download and add to your plugins forlder Basic Auth
- Install app for testing Postman
- Basic Auth Setup Tutorial
rest endpoint wp-json/wpr/v1/route/
example data for posting
{
"title": "The Post Title",
"content": "The Post Content",
"meta": "Meta Content postmeta",
"tags": ["hello", "world"]
}
If you are testing with Custom Field Suite here is a sample field
[{"post_title":"Post Meta","post_name":"post-meta","cfs_fields":[{"id":"1","name":"post_meta_text","label":"Post Meta Text","type":"text","notes":"","parent_id":0,"weight":0,"options":{"default_value":"Some Post Meta Text","required":"0"}}],"cfs_rules":{"post_types":{"operator":"==","values":["post","tribe_events"]}},"cfs_extras":{"order":"0","context":"normal","hide_editor":"0"}}]