Last active
January 8, 2025 04:12
-
-
Save dlh01/6926d5751f901beae2a0bf10b0051c62 to your computer and use it in GitHub Desktop.
wp-cli command docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Print syndication debugging information about a post. | |
* | |
* ## OPTIONS | |
* | |
* <id> | |
* : Post ID. | |
* | |
* <id>... | |
* : Post IDs. | |
* | |
* [<id>] | |
* : Optional. Post ID. | |
* | |
* [<id>...] | |
* : Optional. Post IDs. | |
* | |
* --post-type=<post-type> | |
* : Limit to posts in this type. | |
* | |
* [--theme] | |
* : Create a file in the active theme directory, instead of sending to | |
* STDOUT. Specify a theme with `--theme=<theme>` to have the file placed in that theme. | |
* | |
* [--format=<format>] | |
* : Render output in a particular format. | |
* --- | |
* default: table | |
* options: | |
* - table | |
* - csv | |
* - json | |
* - count | |
* - yaml | |
* --- | |
* | |
* [--dry-run] | |
* : Don't persist changes. | |
* | |
* [--verbose] | |
* : Turn on verbose mode. | |
* | |
* [--rewind] | |
* : Resets the cursor so the next time the command is run it will start from the beginning. | |
* | |
* [--<field>=<value>] | |
* : Allow unlimited number of associative parameters. | |
* | |
* ## EXAMPLES | |
* | |
* # Get the matching provider for the URL. | |
* $ wp embed provider match https://www.youtube.com/watch?v=dQw4w9WgXcQ | |
* https://www.youtube.com/oembed | |
* | |
* @subcommand debug-post | |
* | |
* @phpstan-param array<int, string> $args | |
* @phpstan-param array<string, string> $assoc_args | |
* | |
* @param array $args Positional arguments. | |
* @param array $assoc_args Associative arguments. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment