mirror of
https://ghproxy.net/https://github.com/wp-cli/handbook.git
synced 2026-07-27 12:47:14 +08:00
21 lines
472 B
Markdown
21 lines
472 B
Markdown
# wp theme mod
|
|
|
|
Sets, gets, and removes theme mods.
|
|
|
|
### EXAMPLES
|
|
|
|
# Set the 'background_color' theme mod to '000000'.
|
|
$ wp theme mod set background_color 000000
|
|
Success: Theme mod background_color set to 000000.
|
|
|
|
# Get single theme mod in JSON format.
|
|
$ wp theme mod get background_color --format=json
|
|
[{"key":"background_color","value":"dd3333"}]
|
|
|
|
# Remove all theme mods.
|
|
$ wp theme mod remove --all
|
|
Success: Theme mods removed.
|
|
|
|
|
|
|
|
|