File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -504,8 +504,8 @@ protected function delete_callback( $post_id, $assoc_args ) {
504504 /**
505505 * Gets a list of posts.
506506 *
507- * Display posts based on all arguments supported by
508- * [WP_Query()](https://developer.wordpress.org/reference/classes/wp_query/) .
507+ * Display posts based on all arguments supported by [WP_Query()](https://developer.wordpress.org/reference/classes/wp_query/).
508+ * Only shows post types marked as post by default .
509509 *
510510 * ## OPTIONS
511511 *
@@ -598,6 +598,14 @@ protected function delete_callback( $post_id, $assoc_args ) {
598598 * | 1 | Hello world! | hello-world | 2016-06-01 14:31:12 | publish |
599599 * +----+--------------+-------------+---------------------+-------------+
600600 *
601+ * # List given post by a specific author
602+ * $ wp post list --author=2
603+ * +----+-------------------+-------------------+---------------------+-------------+
604+ * | ID | post_title | post_name | post_date | post_status |
605+ * +----+-------------------+-------------------+---------------------+-------------+
606+ * | 14 | New documentation | new-documentation | 2021-06-18 21:05:11 | publish |
607+ * +----+-------------------+-------------------+---------------------+-------------+
608+ *
601609 * @subcommand list
602610 */
603611 public function list_ ( $ args , $ assoc_args ) {
You can’t perform that action at this time.
0 commit comments