Skip to content

Custom tools v2: WP-CLI command tool type #57

@lezama

Description

@lezama

Follow-up to #43.

Add a third tool type that runs a WP-CLI command. Enabled only when the WP_CLI constant is defined; otherwise the option is greyed out in the wizard with a clear note.

Security note: command and args must use a parameterised invocation (WP_CLI::runcommand( …, [ 'launch' => false ] )) — never shell_exec / exec / a single string-interpolated command line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions