WP-CLI Tools

WP-CLI Tools

Clearing TransientsExamplesEmptying TrashExamplesParametersVerifying ChecksumsExamplesParametersGetting the System ReportExamplesRunning the database setup

This article includes a few extra commands which are available with the CLI Add-On for Gravity Forms.
Clearing Transients
wp gf tool clear_transients
wp gf tool clear-transients
Clears the Gravity Forms transients.
Examples
123# Successful clearing of the transients.$ wp gf tool clear-transientsSuccess: Gravity Forms transients cleared successfully.
123# Failed clearing of the transients.$ wp gf tool clear_transientsError: There was a problem clearing the Gravity Forms transients.
Emptying Trash
wp gf tool empty_trash
wp gf tool empty-trash
Delete the trashed entries.
Examples
123# Successful deletion of trashed entries for all forms.$ wp gf tool empty-trashSuccess: Trash emptied successfully for all forms.
123# Successful deletion of trashed entries for a specific form.$ wp gf tool empty-trash 2Success: Trash emptied successfully for form ID 2
Parameters

Argument
Description

[]
The ID of the form to delete the entries from. Default: all forms.

Verifying Checksums
wp gf tool verify_checksums
wp gf tool verify-checksums
Verify the Gravity Forms plugin files against the checksums.
Examples
123# Successful verification of the plugin checksums.$ wp gf tool verify-checksumsSuccess: Gravity Forms install verifies against checksums.
1234# Failed checksum verification.$ wp gf tool verify-checksumsWarning: File doesn't exist: css/admin.min.cssError: Gravity Forms install doesn't verify against checksums.
Parameters

Argument
Description

[--version=]
The version number the checksums should be validated against.

Getting the System Report
wp gf tool system_report
wp gf tool system-report
wp gf tool status
Outputs the system report from the Forms > System Status page.
Examples
12345# Successfully using the "system-report" command to output the system report.$ wp gf tool system-reportSuccess:### Gravity Forms ###...
123# Using the "status" alias with an older Gravity Forms version.$ wp gf tool statusError: The system report is only available with Gravity Forms 2.2 or greater.
Running the database setup
See the Managing Gravity Forms and Add-Ons with WP-CLI article.

發表回覆

您的電子郵箱地址不會被公開。 必填項已用 * 標註