Skip to content

Commit 297d22f

Browse files
committed
Update theme commands examples
1 parent 8071370 commit 297d22f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/Theme_Command.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Theme installed successfully.
2121
* Activating 'twentysixteen'...
2222
* Success: Switched to 'Twenty Sixteen' theme.
23+
* Success: Installed 1 of 1 themes.
2324
*
2425
* # Get details of an installed theme
2526
* $ wp theme get twentysixteen --fields=name,title,version
@@ -478,6 +479,7 @@ protected function filter_item_list( $items, $args ) {
478479
* Theme installed successfully.
479480
* Activating 'twentysixteen'...
480481
* Success: Switched to 'Twenty Sixteen' theme.
482+
* Success: Installed 1 of 1 themes.
481483
*
482484
* # Install from a local zip file
483485
* $ wp theme install ../my-theme.zip
@@ -860,22 +862,22 @@ public function delete( $args, $assoc_args ) {
860862
* * update
861863
* * version
862864
* * update_version
865+
* * auto_update
863866
*
864867
* These fields are optionally available:
865868
*
866869
* * update_package
867870
* * update_id
868871
* * title
869872
* * description
870-
* * auto_update
871873
*
872874
* ## EXAMPLES
873875
*
874-
* # List themes
876+
* # List inactive themes.
875877
* $ wp theme list --status=inactive --format=csv
876-
* name,status,update,version,update_version
877-
* twentyfourteen,inactive,none,1.7,
878-
* twentysixteen,inactive,available,1.1,
878+
* name,status,update,version,update_version,auto_update
879+
* twentyfourteen,inactive,none,3.8,,off
880+
* twentysixteen,inactive,available,3.0,3.1,off
879881
*
880882
* @subcommand list
881883
*/

src/Theme_Mod_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* # Set the 'background_color' theme mod to '000000'.
99
* $ wp theme mod set background_color 000000
10-
* Success: Theme mod background_color set to 000000
10+
* Success: Theme mod background_color set to 000000.
1111
*
1212
* # Get single theme mod in JSON format.
1313
* $ wp theme mod get background_color --format=json
@@ -231,7 +231,7 @@ public function remove( $args = array(), $assoc_args = array() ) {
231231
*
232232
* # Set theme mod
233233
* $ wp theme mod set background_color 000000
234-
* Success: Theme mod background_color set to 000000
234+
* Success: Theme mod background_color set to 000000.
235235
*/
236236
public function set( $args = array(), $assoc_args = array() ) {
237237
list( $mod, $value ) = $args;

0 commit comments

Comments
 (0)