Skip to content

Commit b6a020b

Browse files
authored
Merge pull request #321 from pdaalder/master
2 parents 055c1fe + 249a17b commit b6a020b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Post_Command.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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 ) {

0 commit comments

Comments
 (0)