Skip to content

Instantly share code, notes, and snippets.

@dlh01
Last active November 27, 2023 20:53
Show Gist options
  • Save dlh01/6926d5751f901beae2a0bf10b0051c62 to your computer and use it in GitHub Desktop.
Save dlh01/6926d5751f901beae2a0bf10b0051c62 to your computer and use it in GitHub Desktop.
wp-cli command docs
<?php
/**
* Print syndication debugging information about a post.
*
* ## OPTIONS
*
* <id>
* : Post ID.
*
* <id>...
* : Post IDs.
*
* [<id>]
* : Optional. Post ID.
*
* [<id>...]
* : Optional. Post IDs.
*
* [--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
*
* @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