Post Types
Introduction
Endpoints
List By Type
Introduction
REST API End Points for managing and checking GD Post Types.
EndPoints
/wp-json/geodir/v2/types
Output
{ "gd_place": { "description": "Place post type.", "hierarchical": false, "name": "Places", "slug": "gd_place", "taxonomies": [ "gd_place_tags", "gd_placecategory" ], "rest_base": "places", "_links": { "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/types" } ], "fields": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/places/fields" } ], "wp:items": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/places" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } } }
List By Type EndPoints
/wp-json/geodir/v2/types/< post_type >
/wp-json/geodir/v2/types/gd_place
{ "description": "Place post type.", "hierarchical": false, "name": "Places", "slug": "gd_place", "taxonomies": [ "gd_place_tags", "gd_placecategory" ], "rest_base": "places", "_links": { "collection": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/types" } ], "fields": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/places/fields" } ], "wp:items": [ { "href": "http://local.newwp.test/wp-json/geodir/v2/places" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } }