Skip to content

REST API

Ordering: 2 routes.

All under /wp-json/davo/v1. Every route has a description in the source.

  • PUT2
  • PATCH2

/posts/{post_type}/order

PUTPATCHAccess check: require_login

Moves a post to a new position, relative to before_id or after_id.

Handler: cb_move_post()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/posts/{post_type}/order"

src/domains/ordering/routes.php:52

/terms/{taxonomy}/order

PUTPATCHAccess check: require_login

Moves a term to a new position, relative to before_id or after_id.

Handler: cb_move_term()

No parameters declared in the route registration.

curl
curl -X PUT -u "user:application-password" "https://example.com/wp-json/davo/v1/terms/{taxonomy}/order"

src/domains/ordering/routes.php:63

Note. Generated from the plugin source. Parameters are the ones declared when the route is registered; a parameter marked “see source” uses a shared definition. Responses are not documented here. Authenticate as for any WordPress REST route, for example with an application password over HTTPS; the example paths use https://example.com.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first