View PHPDoc of any class, method, property, or function.
wp doc <function-or-class> [<method-or-property>] [--raw]
[--raw] Return the raw docblock instead of formatting it
# get documentation for `get_posts` function wp doc get_posts # get documentation for `WP_Query::parse_query` method wp doc WP_Query parse_query
Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with
wp cli update.
Once you've done so, you can install this package with
wp package install alleyinteractive/wp-doc-command
Code and ideas are more than welcome.
Please open an issue with questions, feedback, and violent dissent. Pull requests are expected to include test coverage.