wp transient set <key> <value> <expiration>
Sets a transient value
Arguments
Name | Description |
---|---|
key | Key for the transient |
value | Value to be set for the transient |
expiration | Time until expiration, in seconds |
Options
Name | Description |
---|---|
--network | Set the value of a network|site transient. On single site, this is is a specially-named cache key. On multisite, this is a global cache (instead of local to the site) |