Skip to content

Commit a233ae9

Browse files
Copilotswissspidy
andcommitted
Add examples for config add and config update in main docblock
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent e4db282 commit a233ae9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/Config_Command.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
* $ wp config get table_prefix
3535
* wp_
3636
*
37+
* # Add a new constant to the wp-config.php file.
38+
* $ wp config add WP_DEBUG true --raw
39+
* Success: Added the constant 'WP_DEBUG' to the 'wp-config.php' file with the raw value 'true'.
40+
*
41+
* # Update or add a constant to the wp-config.php file.
42+
* $ wp config update WP_DEBUG false --raw
43+
* Success: Updated the constant 'WP_DEBUG' in the 'wp-config.php' file with the raw value 'false'.
44+
*
3745
* # Set the WP_DEBUG constant to true.
3846
* $ wp config set WP_DEBUG true --raw
3947
* Success: Updated the constant 'WP_DEBUG' in the 'wp-config.php' file with the raw value 'true'.

0 commit comments

Comments
 (0)