Skip to content

Commit 93eb93d

Browse files
Fix example for post create command (#458)
* Fix example for post create command * Update README --------- Co-authored-by: Daniel Bachhuber <[email protected]>
1 parent 26fadf2 commit 93eb93d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ wp post create [--post_author=<post_author>] [--post_date=<post_date>] [--post_d
22082208
**EXAMPLES**
22092209

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

22142214
# Create post with content from given file

src/Post_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function __construct() {
147147
* ## EXAMPLES
148148
*
149149
* # Create post and schedule for future
150-
* $ wp post create --post_type=page --post_title='A future post' --post_status=future --post_date='2020-12-01 07:00:00'
150+
* $ wp post create --post_type=post --post_title='A future post' --post_status=future --post_date='2030-12-01 07:00:00'
151151
* Success: Created post 1921.
152152
*
153153
* # Create post with content from given file

0 commit comments

Comments
 (0)