From 942a5e4c2852a78d7c7ad170d461d81b2ac1e7c1 Mon Sep 17 00:00:00 2001 From: jasonbahl Date: Mon, 12 Jun 2017 14:16:30 -0600 Subject: [PATCH] Updating README to reflect recent changes --- README.md | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d7b7c2d..2a7e245 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,25 @@ Whenever a term is created the following data will be stored in the term's term_ Terms that were created before this plugin was activated will, of course, not have this meta stored. -* **meta_key:** `created` -* **meta_value:** array which includes timestamp and the user ID for the user who created the term +* **meta_key:** `created_by` +* **meta_value:** User ID for who created the term + +* **meta_key:** `created_timestamp` +* **meta_value:** Timestamp for when the term was created ### Term Updates Whenever a term is updated, the following data will be stored in the term's term_meta: -* **meta_key:** `modified` -* **meta_value:** array which includes timestamp and the user ID for the user who modified the term +* **meta_key:** `last_modified_timestamp` +* **meta_value:** Timestamp for when the term was most recently modified + + +* **meta_key:** `last_modified_by` +* **meta_value:** User ID for who most recently modified the term. + + +* **meta_key:** `modifications` +* **meta_value:** Array which includes timestamp and the user ID for the user who modified the term ### WPGraphQL Support @@ -45,6 +56,13 @@ query { username } } + modifications { + time + user { + id + username + } + } } } ``` @@ -52,3 +70,7 @@ query { ### Unit Tests This plugin has Unit Tests. To run the tests, in the command line navigate to the plugin directory and run `phpunit` +You may first need to install the unit tests like so: + +`bin/install-wp-tests.sh [db-host] [wp-version] [skip-database-creation]` +