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.
wp culprit-finder start
Section titled “wp culprit-finder start”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
wp --user=admin culprit-finder start --pin=acme-shop/acme-shop.phpwp culprit-finder status
Section titled “wp culprit-finder status”Show the current step.
Options
--format=<format>(optional) Output format. Default:json. Accepts:json.
wp culprit-finder answer
Section titled “wp culprit-finder answer”Answer the current question.
Options
<answer>“yes” = the problem is still there, “no” = it’s gone. Accepts:yes,no.
wp culprit-finder undo
Section titled “wp culprit-finder undo”Undo the last answer.
wp culprit-finder result
Section titled “wp culprit-finder result”Show the last result, with the support report.
Options
--format=<format>(optional) Output format. Default:json. Accepts:json,report.
wp culprit-finder exit
Section titled “wp culprit-finder exit”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.