mirror of
https://gh.wpcy.net/https://github.com/wp-cli/handbook.git
synced 2026-05-27 12:58:27 +08:00
472 B
472 B
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.