From acfe41288d565ae426328650f5ff98cfed8b233b Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Wed, 17 Jan 2024 21:33:51 +0545 Subject: [PATCH 1/2] Fix example for post create command --- src/Post_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From cbc68b7c6ad5baf8d75867c5ace26c9ad6e25883 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 30 Jan 2024 13:31:29 -0800 Subject: [PATCH 2/2] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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