Skip to content

Commit 249a17b

Browse files
Pieter DaalderPieter Daalder
authored andcommitted
Clarified filtering listing posts by author to fix #297
1 parent 6407c57 commit 249a17b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Post_Command.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)