WP Manifestindependent plugin directory
manifest / developer / wp-api-meta-data

WP REST API Post and User Meta

Adds post and user meta data to WP REST API endpoints.

★ 3stars
34composer installs

Install

Download source zip No release zip yet

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/bostondv/wp-api-meta-data/archive/refs/heads/master.zip

On Packagist as bostondv/wp-api-meta-data:

composer require bostondv/wp-api-meta-data
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that adds post and user meta data to the WP API endpoints. Supports getting and setting post and user meta.

Requires WP API Version 2.0 Beta 12 or higher.

Usage

Listing and Retrieving a Post

A meta field will be added to the response data containing an array of all post meta data.

Creating and Updating a Post

Add a meta object to the POST data of your request containing key / value pairs of the meta data you want to update or add. Response will contain the new meta data.

Listing and Retrieving a User

A meta field will be added to the response data containing an array of all user meta data.

Creating and Updating a User

Add a meta object to the POST data of your request containing key / value pairs of the meta data you want to update or add. Response will contain the new meta data.

Deleting Meta Keys

To delete a meta key entirely, send the key / value pair with a null value and that key will be deleted.