From 93eb93d880c5a8d6e827e08bdfe10dced1e435fa Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Wed, 31 Jan 2024 03:30:35 +0545 Subject: [PATCH] Fix example for post create command (#458) * Fix example for post create command * Update README --------- Co-authored-by: Daniel Bachhuber --- README.md | 2 +- src/Post_Command.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed0f64f0..4408c743 100644 --- a/README.md +++ b/README.md @@ -2208,7 +2208,7 @@ wp post create [--post_author=] [--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 diff --git a/src/Post_Command.php b/src/Post_Command.php index 7b9942ab..2c7ee0cf 100644 --- a/src/Post_Command.php +++ b/src/Post_Command.php @@ -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