• Resolved spinhead

    (@spinhead)


    The wp doctor documentation shows this unclear example for using custom input files to run custom checks.

    The input YAML file:

    plugin-w3-total-cache:
      check: Plugin_Status
      options:
        name: w3-total-cache
        status: uninstalled

    The command and results, per the documentation:

    $ wp doctor check --fields=name,status --all --config=doctor.yml
    +-----------------------+--------+
    | name                  | status |
    +-----------------------+--------+
    | plugin-w3-total-cache | error  |
    +-----------------------+--------+

    The precise nature of some values is ambiguous. I’d love to update the documentation but need to understand the details first. My assumptions and questions:

    plugin-w3-total-cache: appears to be the name of the check
    check: Plugin_Status unclear what this is: perhaps the name of the check for wp doctor’s internal information? I cannot find Plugin_Status in precisely that format anywhere.
    options: self-evident
    name: w3-total-cache the slug of the plugin being checked
    status: uninstalled the status to verify; in the example, because the status in the results is error it appears that that the plugin is installed because uninstalled failed.

    If someone can verify my understanding and clarify my confusion, I’ll write it up and submit it.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘understanding wp doctor custom input file’ is closed to new replies.