File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed
Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ function generate_contributing() {
9191 *
9292 * Used to build user-facing docs of public APIs.
9393 *
94+ * @when before_wp_load
95+ *
9496 * @subcommand api-dump
9597 */
9698function api_dump () {
@@ -121,7 +123,7 @@ function api_dump() {
121123 }
122124 echo json_encode ( $ apis );
123125}
124- \WP_CLI ::add_command ( 'cli api-dump ' , '\WP_CLI_Org\api_dump ' );
126+ \WP_CLI ::add_command ( 'api-dump ' , '\WP_CLI_Org\api_dump ' );
125127
126128/**
127129 * Get a simple representation of a function or method
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ display_global_parameters: true
1010
1111<hr />
1212
13- # Dump the list of installed commands
13+ ### EXAMPLES
14+
15+ # Dump the list of installed commands
1416 $ wp cli cmd-dump
1517 {"name":"wp","description":"Manage WordPress through the command-line.","longdesc":"\n\n
1618
Original file line number Diff line number Diff line change @@ -43,10 +43,6 @@ display_global_parameters: true
4343 <td><a href="/commands/cli/alias/">alias</a></td>
4444 <td>List available aliases.</td>
4545 </tr>
46- <tr>
47- <td><a href="/commands/cli/api-dump/">api-dump</a></td>
48- <td>Dump the list of internal APIs, as JSON.</td>
49- </tr>
5046 <tr>
5147 <td><a href="/commands/cli/check-update/">check-update</a></td>
5248 <td>Check for update via Github API. Returns the available versions if there are updates, or empty if no update available.</td>
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ display_global_parameters: true
1212
1313### EXAMPLES
1414
15- # Set theme mod
15+ # Set theme mod.
1616 $ wp theme mod set background_color 000000
1717 Success: Theme mod background_color set to 000000
1818
19- # Get single theme mod in JSON format
19+ # Get single theme mod in JSON format.
2020 $ wp theme mod get background_color --format=json
2121 [{"key":"background_color","value":"dd3333"}]
2222
23- # Remove all theme mods
23+ # Remove all theme mods.
2424 $ wp theme mod remove --all
2525 Success: Theme mods removed.
2626
Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ display_global_parameters: true
1616: One or more mods to remove.
1717
1818[ \- -all]
19- : Remove all theme mods
19+ : Remove all theme mods.
2020
2121### EXAMPLES
2222
23- # Remove all theme mods
23+ # Remove all theme mods.
2424 $ wp theme mod remove --all
2525 Success: Theme mods removed.
2626
27- # Remove single theme mods
27+ # Remove single theme mod.
2828 $ wp theme mod remove background_color
29- Success: 1 mods removed.
29+ Success: 1 mod removed.
3030
31- # Remove multiple theme mods
31+ # Remove multiple theme mods.
3232 $ wp theme mod remove background_color header_textcolor
3333 Success: 2 mods removed.
3434
You can’t perform that action at this time.
0 commit comments