wp theme mod

EXAMPLES 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.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp theme mod get

Gets one or more theme mods.

wp theme mod list

Gets a list of theme mods.

wp theme mod remove

Removes one or more theme mods.

wp theme mod set

Sets the value of a theme mod.

Scroll to Top
%d bloggers like this: