MammothWP Acceptance Logs: commands

Read from the source of admin-terms-acceptance at main.

WP-CLI · wp-kit

wp mmwp terms list

List archived terms versions

Lists every archived terms version, newest first.

Usage of wp mmwp terms list
Usage
wp mmwp terms list [--limit=<limit>] [--offset=<offset>]
Options of wp mmwp terms list
ArgumentDescription
--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

wp mmwp terms publish

Publish a new terms version

Publishes the text as the active version. Everyone in scope is asked to accept it again.

Usage of wp mmwp terms publish
Usage
wp mmwp terms publish --content=<content> [--version_number=<version_number>] [--effective_date=<effective_date>] [--change_summary=<change_summary>] [--only_if_changed]
Options of wp mmwp terms publish
ArgumentDescription
--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_changedDo nothing if the text matches the active version.

Registered in src/Api/TermsResource.php#L1(opens in a new tab).

WP-CLI · wp-kit

wp mmwp terms acceptances

List acceptance log entries

Read-only, redacted export of the acceptance log. Restricted to the plugin managers.

Usage of wp mmwp terms acceptances
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>]
Options of wp mmwp terms acceptances
ArgumentDescription
--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

wp mmwp terms purge

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 of wp mmwp terms purge
Usage
wp mmwp terms purge [--dry_run] [--force]
Options of wp mmwp terms purge
ArgumentDescription
--dry_runReport only, even with --force.
--forceActually delete. Irreversible.

Registered in src/Api/TermsResource.php#L1(opens in a new tab).