Seit Version 2.10.0 enthält Impressum Plus eine dedizierte WP-CLI-Integration.

Impressum-Befehle

Impressum-Daten erhalten

wp impressum getCode-Sprache: 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-Sprache: CSS (css)

Beispiele

# Get field.
$ wp impressum get country
deu

# Get field in human-readable format
$ wp impressum get country --human-readable
GermanyCode-Sprache: PHP (php)

Impressum-Daten aktualisieren

wp impressum update <field>Code-Sprache: HTML, XML (xml)

Optionen

<field>
: Field name of the data.

[<value>]
: The new value. If omitted, the value is read from STDIN.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)

Impressum-Daten löschen

wp impressum deleteCode-Sprache: JavaScript (javascript)

Optionen

[<field>]
: Field name of the data.Code-Sprache: HTML, XML (xml)

Beispiele

# Delete field.
$ wp impressum delete country
Deleted 'country' field.

# Delete all fields
$ wp impressum delete
Success: Deleted all Impressum data.Code-Sprache: PHP (php)

Datenschutzerklärung-Befehle

Datenschutzerklärung-Daten erhalten

wp privacy-policy getCode-Sprache: 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-Sprache: CSS (css)

Beispiele

# Get field.
$ $ wp privacy-policy get logfile_days
7Code-Sprache: PHP (php)

Datenschutzerklärung-Daten aktualisieren

wp privacy-policy update <field>Code-Sprache: HTML, XML (xml)

Optionen

<field>
: Field name of the data.

[<value>]
: The new value. If omitted, the value is read from STDIN.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)

Datenschutzerklärung-Daten löschen

wp privacy-policy deleteCode-Sprache: JavaScript (javascript)

Optionen

[<field>]
: Field name of the data.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)

Lizenz-Befehle

Lizenz aktivieren

wp impressum license activate

Optionen

[<license_email>]
: Email address of the license

[<license_key>]
: Key of the license

[--network]
: Activate the license for the whole network.Code-Sprache: CSS (css)

Beispiele

# 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-Sprache: PHP (php)

Lizenz deaktivieren

wp impressum license deactivate

Beispiele

# Deactivate the license.
$ wp impressum license deactivate
Success: Impressum Plus deactivated.Code-Sprache: PHP (php)

Lizenz-Daten erhalten

wp impressum license getCode-Sprache: JavaScript (javascript)

Optionen

[<field>]
* : Field name of the data.Code-Sprache: HTML, XML (xml)

Beispiele

# Get field.
$ wp impressum license get license_email
admin@example.comCode-Sprache: PHP (php)

Lizenz-Daten aktualisieren

wp impressum license update <field>Code-Sprache: HTML, XML (xml)

Optionen

<field>
: Field name of the data.

[<value>]
: The new value. If omitted, the value is read from STDIN.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)

Lizenz-Daten löschen

wp impressum license deleteCode-Sprache: JavaScript (javascript)

Optionen

<field>
: Field name of the data.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)

API-Befehle

API-Daten erhalten

wp impressum api getCode-Sprache: JavaScript (javascript)

Optionen

<field>
: Field name of the data.Code-Sprache: HTML, XML (xml)

Beispiele

# Get field.
$ wp impressum api get api_active
1Code-Sprache: PHP (php)

API-Daten aktualisieren

wp impressum api update

Optionen

<field>
: Field name of the data.

[<value>]
: The new value. If omitted, the value is read from STDIN.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)

API-Daten löschen

wp impressum api deleteCode-Sprache: JavaScript (javascript)

Optionen

<field>
: Field name of the data.Code-Sprache: HTML, XML (xml)

Beispiele

# 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-Sprache: PHP (php)