Skip to content

Commit

Permalink
Fix example for post create command (#458)
Browse files Browse the repository at this point in the history
* Fix example for post create command

* Update README

---------

Co-authored-by: Daniel Bachhuber <[email protected]>
  • Loading branch information
ernilambar and danielbachhuber authored Jan 30, 2024
1 parent 26fadf2 commit 93eb93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,7 @@ wp post create [--post_author=<post_author>] [--post_date=<post_date>] [--post_d
**EXAMPLES**

# Create post and schedule for future
$ wp post create --post_type=page --post_title='A future post' --post_status=future --post_date='2020-12-01 07:00:00'
$ wp post create --post_type=post --post_title='A future post' --post_status=future --post_date='2030-12-01 07:00:00'
Success: Created post 1921.

# Create post with content from given file
Expand Down
2 changes: 1 addition & 1 deletion src/Post_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function __construct() {
* ## EXAMPLES
*
* # Create post and schedule for future
* $ wp post create --post_type=page --post_title='A future post' --post_status=future --post_date='2020-12-01 07:00:00'
* $ wp post create --post_type=post --post_title='A future post' --post_status=future --post_date='2030-12-01 07:00:00'
* Success: Created post 1921.
*
* # Create post with content from given file
Expand Down

0 comments on commit 93eb93d

Please sign in to comment.