Skip to content

Commit dcd1820

Browse files
committed
Added examples for option get command
1 parent bce5b03 commit dcd1820

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Option_Command.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ class Option_Command extends WP_CLI_Command {
5151
* $ wp option get home
5252
* http://example.com
5353
*
54+
* # Get blog description.
55+
* $ wp option get blogdescription
56+
* A random blog description
57+
*
58+
* # Get blog name
59+
* $ wp option get blogname
60+
* A random blog name
61+
*
62+
* # Get admin email.
63+
* $ wp option get admin_email
64+
65+
*
5466
* # Get option in JSON format.
5567
* $ wp option get active_plugins --format=json
5668
* {"0":"dynamically-dynamic-sidebar\/dynamically-dynamic-sidebar.php","1":"monster-widget\/monster-widget.php","2":"show-current-template\/show-current-template.php","3":"theme-check\/theme-check.php","5":"wordpress-importer\/wordpress-importer.php"}

0 commit comments

Comments
 (0)