WP-CLI · wp-kit
wp mmwp terms get
Show the active terms version
Returns the terms version users must currently have accepted.
| Usage |
|---|
wp mmwp terms get |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
Read from the source of admin-terms-acceptance at main.
WP-CLI · wp-kit
Show the active terms version
Returns the terms version users must currently have accepted.
| Usage |
|---|
wp mmwp terms get |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
WP-CLI · wp-kit
List archived terms versions
Lists every archived terms version, newest first.
| Usage |
|---|
wp mmwp terms list [--limit=<limit>] [--offset=<offset>] |
| Argument | Description |
|---|---|
--limit=<limit> | Rows to return. |
--offset=<offset> | Rows to skip. |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
WP-CLI · wp-kit
Get one archived terms version
Returns one archived terms version, including its full text.
| Usage |
|---|
wp mmwp terms show <id> |
| Argument | Description |
|---|---|
<id> | Version ID. |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
WP-CLI · wp-kit
Publish a new terms version
Publishes the text as the active version. Everyone in scope is asked to accept it again.
| Usage |
|---|
wp mmwp terms publish --content=<content> [--version_number=<version_number>] [--effective_date=<effective_date>] [--change_summary=<change_summary>] [--only_if_changed] |
| Argument | Description |
|---|---|
--content=<content> | The terms text. HTML is filtered through wp_kses_post(). |
--version_number=<version_number> | Human version number, e.g. 2.1. Derived if omitted. |
--effective_date=<effective_date> | Effective date, Y-m-d. |
--change_summary=<change_summary> | Shown to returning users above the terms. |
--only_if_changed | Do nothing if the text matches the active version. |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
WP-CLI · wp-kit
Re-read the terms content source
Re-reads the terms content source now instead of waiting for the daily check, and publishes a new version if it changed.
| Usage |
|---|
wp mmwp terms refresh |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
WP-CLI · wp-kit
List acceptance log entries
Read-only, redacted export of the acceptance log. Restricted to the plugin managers.
| Usage |
|---|
wp mmwp terms acceptances [--user_id=<user_id>] [--version_id=<version_id>] [--date_from=<date_from>] [--date_to=<date_to>] [--limit=<limit>] [--offset=<offset>] |
| Argument | Description |
|---|---|
--user_id=<user_id> | Only this user. 0 for everyone. |
--version_id=<version_id> | Only this terms version. 0 for all. |
--date_from=<date_from> | First day, Y-m-d (UTC). |
--date_to=<date_to> | Last day, Y-m-d (UTC). |
--limit=<limit> | Rows to return. |
--offset=<offset> | Rows to skip. |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).
WP-CLI · wp-kit
Report or permanently delete all acceptance evidence
Without --force this only reports what exists. With --force it drops the log, the version archive and the audit events.
| Usage |
|---|
wp mmwp terms purge [--dry_run] [--force] |
| Argument | Description |
|---|---|
--dry_run | Report only, even with --force. |
--force | Actually delete. Irreversible. |
Registered in src/Api/TermsResource.php#L1(opens in a new tab).