wp theme mod <command>

Sets, gets, and removes theme mods.

In this article

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. 

Subcommands

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

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.