-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreadme.txt
53 lines (36 loc) · 2.43 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
=== Manipulate Meta with the WP API ===
Contributors: salzano
Tags: REST API, WP API, delete meta
Requires at least: 5.0.0
Tested up to: 6.3.0
Stable tag: 1.4.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Adds routes to the REST API to read, write, and delete post and term meta values separately from posts and terms.
== Description ==
Instructions in README.md
== Frequently Asked Questions ==
= Why? =
As of this writing, it is not possible to delete a meta value using the WordPress REST API. Post meta updates must be communicated while inserting and updating whole post objects, and the only way to remove meta fields from a post is to write blank values. This plugin allows one request to retrieve, update, or delete a meta field independently from a post object. It also allows one request to bulk delete meta fields by accepting an array of meta keys as a parameter.
== Changelog ==
= 1.4.5 =
* [Fixed] Makes strings easier to translate.
* [Changed] Changes tested up to version number to 6.3.0.
= 1.4.4 =
* [Fixed] Fixes a bug by adding a `permission_callback` to to readable REST route. WordPress 5.5.0 starts logging a notice when this argument is missing.
= 1.4.3 =
* [Fixed] Fixes a bug that prevented the bulk deletion of term meta values.
= 1.4.2 =
* [Fixed] Fixes a bug where no `permission_callback` was specified for any REST routes, so any user, including a non-authenticated user, could modify meta data using the routes.
= 1.4.1 =
* [Fixed] Implements translatable strings in our error messages
= 1.4.0 =
* [Added] Adds methods to refactor the code by sharing methods between post and term meta manipulations. The methods `get_rest_base`, `object_is_post`, and `object_is_term` allow one callback method to determine if the request is for a post or a term and act accordingly.
* [Added] Adds a class to hold our REST API error responses. Defines a namespace and adds an autoloader to automatically load dependency files.
* [Changed] Refactors all of the route callback methods to be shared between posts and terms.
* [Changed] Refactors two methods that register REST routes for posts and taxonomies into one.
= 1.3.0 =
* [Added] Adds a route to allow the bulk deletion of term meta keys, similar to the bulk delete feature for posts introduced in 1.1.0.
* [Fixed] Fixes a bug where a method intended for `sanitize_callback` was provided instead as the `validate_callback`.
= 1.2.0 =
* [Added] Adds this readme.txt