WP Manifestindependent plugin directory
manifest / integrations / wpr-endpoints

WPR Endpoints

WP Rest API custom endpoints

by Jim · github.com/resonantdoghouse/wpr-endpoints · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/resonantdoghouse/wpr-endpoints/archive/refs/heads/master.zip

Readme

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

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"}}]

Read the full README on GitHub →