Skip to content

WP-CLI command

Culprit Finder adds a wp culprit-finder command. Run it as an administrator with the global --user option, for example wp --user=admin culprit-finder start. Commands print JSON unless noted.

WP-CLI requests are never filtered: the command manages the session, while the browser that holds the session cookie sees the plugins switched off.

Start a session for the current user (global –user), replacing any running one.

Prints JSON: {“token”: “…”, “recovery_key”: “…”, “step”: {…}}. The token goes into the wp-culprit-finder cookie of a browser logged in as that user.

Options

  • --pin=<basenames> (optional) Comma-separated plugin basenames to keep on in every step.

Example

Terminal window
wp --user=admin culprit-finder start --pin=acme-shop/acme-shop.php

Show the current step.

Options

  • --format=<format> (optional) Output format. Default: json. Accepts: json.

Answer the current question.

Options

  • <answer> “yes” = the problem is still there, “no” = it’s gone. Accepts: yes, no.

Undo the last answer.

Show the last result, with the support report.

Options

  • --format=<format> (optional) Output format. Default: json. Accepts: json, report.

End the session. The site is unchanged for everyone; the troubleshooting browser goes back to normal.

WordPress is a trademark of the WordPress Foundation. Culprit Finder is not affiliated with or endorsed by the WordPress Foundation.