WP-CLI Documentation
Since version 2.10.0, Impressum Plus comes with a dedicated WP-CLI integration.
Imprint commands
Get imprint data
wp impressum get
Code language: JavaScript (javascript)
Options
[<field>]
: Field name of the data.
[--human-readable]
: Get a human-readable format instead of the raw format, if supported by the field.
Code language: CSS (css)
Examples
# Get field.
$ wp impressum get country
deu
# Get field in human-readable format
$ wp impressum get country --human-readable
Germany
Code language: PHP (php)
Update imprint data
wp impressum update <field>
Code language: HTML, XML (xml)
Options
<field>
: Field name of the data.
[<value>]
: The new value. If omitted, the value is read from STDIN.
Code language: HTML, XML (xml)
Examples
# Update country field.
$ wp impressum update country usa
Success: Updated 'country' field.
# Update a field by reading from a file.
$ wp impressum update country < value.txt
Success: Updated 'country' option.
Code language: PHP (php)
Delete imprint data
wp impressum delete
Code language: JavaScript (javascript)
Options
[<field>]
: Field name of the data.
Code language: HTML, XML (xml)
Examples
# Delete field.
$ wp impressum delete country
Deleted 'country' field.
# Delete all fields
$ wp impressum delete
Success: Deleted all Impressum data.
Code language: PHP (php)
Privacy policy commands
Get privacy policy data
wp privacy-policy get
Code language: JavaScript (javascript)
Optionen
[<field>]
: Field name of the data.
[--human-readable]
: Get a human-readable format instead of the raw format, if supported by the field.
Code language: CSS (css)
Examples
# Get field.
$ $ wp privacy-policy get logfile_days
7
Code language: PHP (php)
Update privacy policy data
wp privacy-policy update <field>
Code language: HTML, XML (xml)
Options
<field>
: Field name of the data.
[<value>]
: The new value. If omitted, the value is read from STDIN.
Code language: HTML, XML (xml)
Examples
# Update country field.
$ wp privacy-policy update logfile_days 10
Success: Updated 'logfile_days' field.
# Update a field by reading from a file.
$ wp privacy-policy update logfile_days < value.txt
Success: Updated 'logfile_days' option.
Code language: PHP (php)
Delete privacy policy data
wp privacy-policy delete
Code language: JavaScript (javascript)
Options
[<field>]
: Field name of the data.
Code language: HTML, XML (xml)
Examples
# Delete field.
$ wp privacy-policy delete logfile_days
Deleted 'logfile_days' field.
# Delete all fields
$ wp privacy-policy delete
Success: Deleted all Privacy Policy data.
Code language: PHP (php)
License commands
Activate license
wp impressum license activate
Options
[<license_email>]
: Email address of the license
[<license_key>]
: Key of the license
[--network]
: Activate the license for the whole network.
Code language: CSS (css)
Examples
# Activate license with already stored data.
$ wp impressum license activate
Success: Impressum Plus activated.
# Activate license with given data.
$ wp impressum license activate admin@example.com 8916de71-cf6e-4145-bd6c-a15d1cb8e821
Success: Impressum Plus activated.
# Activate license for the whole network.
$ wp impressum license activate --network
Success: Impressum Plus activated.
Code language: PHP (php)
Deactivate license
wp impressum license deactivate
Examples
# Deactivate the license.
$ wp impressum license deactivate
Success: Impressum Plus deactivated.
Code language: PHP (php)
Get license data
wp impressum license get
Code language: JavaScript (javascript)
Options
[<field>]
* : Field name of the data.
Code language: HTML, XML (xml)
Examples
# Get field.
$ wp impressum license get license_email
admin@example.com
Code language: PHP (php)
Update license data
wp impressum license update <field>
Code language: HTML, XML (xml)
Options
<field>
: Field name of the data.
[<value>]
: The new value. If omitted, the value is read from STDIN.
Code language: HTML, XML (xml)
Examples
# Update country field.
$ wp impressum license update license_email admin@example.com
Success: Updated 'license_email' field.
# Update a field by reading from a file.
$ wp impressum license update license_email < value.txt
Success: Updated 'license_email' option.
Code language: PHP (php)
Delete license data
wp impressum license delete
Code language: JavaScript (javascript)
Options
<field>
: Field name of the data.
Code language: HTML, XML (xml)
Examples
# Delete field.
$ wp impressum license delete license_email
Deleted 'license_email' field.
# Delete all fields
$ wp impressum license delete
Success: Deleted all Impressum License data.
Code language: PHP (php)
API commands
Get API data
wp impressum api get
Code language: JavaScript (javascript)
Options
<field>
: Field name of the data.
Code language: HTML, XML (xml)
Examples
# Get field.
$ wp impressum api get api_active
1
Code language: PHP (php)
Update API data
wp impressum api update
Options
<field>
: Field name of the data.
[<value>]
: The new value. If omitted, the value is read from STDIN.
Code language: HTML, XML (xml)
Examples
# Update country field.
$ wp impressum api update api_active usa
Success: Updated 'api_active' field.
# Update a field by reading from a file.
$ wp impressum api update api_active < value.txt
Success: Updated 'api_active' option.
Code language: PHP (php)
Delete API data
wp impressum api delete
Code language: JavaScript (javascript)
Options
<field>
: Field name of the data.
Code language: HTML, XML (xml)
Examples
# Delete field.
$ wp impressum api delete api_active
Deleted 'api_active' field.
# Delete all fields
$ wp impressum api delete
Success: Deleted all API data.
Code language: PHP (php)