Skip to content

Commit e72ba04

Browse files
authored
Add examples for option set-autoload an get-autoload commands (#492)
1 parent 22d726d commit e72ba04

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,12 @@ wp option set-autoload <key> <autoload>
20572057
- 'no'
20582058
---
20592059

2060+
**EXAMPLES**
2061+
2062+
# Set the 'autoload' value for an option.
2063+
$ wp option set-autoload abc_options no
2064+
Success: Updated autoload value for 'abc_options' option.
2065+
20602066

20612067

20622068
### wp option get-autoload
@@ -2072,6 +2078,12 @@ wp option get-autoload <key>
20722078
<key>
20732079
The name of the option to get 'autoload' of.
20742080

2081+
**EXAMPLES**
2082+
2083+
# Get the 'autoload' value for an option.
2084+
$ wp option get-autoload blogname
2085+
yes
2086+
20752087

20762088

20772089
### wp post

src/Option_Command.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,12 @@ public function update( $args, $assoc_args ) {
441441
* <key>
442442
* : The name of the option to get 'autoload' of.
443443
*
444+
* ## EXAMPLES
445+
*
446+
* # Get the 'autoload' value for an option.
447+
* $ wp option get-autoload blogname
448+
* yes
449+
*
444450
* @subcommand get-autoload
445451
*/
446452
public function get_autoload( $args ) {
@@ -477,6 +483,12 @@ public function get_autoload( $args ) {
477483
* - 'no'
478484
* ---
479485
*
486+
* ## EXAMPLES
487+
*
488+
* # Set the 'autoload' value for an option.
489+
* $ wp option set-autoload abc_options no
490+
* Success: Updated autoload value for 'abc_options' option.
491+
*
480492
* @subcommand set-autoload
481493
*/
482494
public function set_autoload( $args ) {

0 commit comments

Comments
 (0)