0

I know there are hooks for writing custom commands as found here: https://make.wordpress.org/cli/handbook/references/internal-api/wp-cli-add-hook/

In my case, I want to handle cleaning up on exit (Ctrl+C) or any SIGKILL signal. Is there a way to handle this in custom WordPress cli?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.