wp-cli / handbook

📖 Complete documentation for WP-CLI
https://make.wordpress.org/cli/handbook/
MIT License
186 stars 320 forks source link

Include hook details in documentation #501

Closed mrsdizzie closed 2 months ago

mrsdizzie commented 2 months ago

When a command specifies a non-default hook, include those details in handbook documentation for the command.

Related: https://github.com/wp-cli/wp-cli/pull/5921

Fixes: https://github.com/wp-cli/wp-cli/issues/5838

This uses essentially the same code from the wp help command added in PR above.