Skip to content

Commit 8fcbde7

Browse files
committed
Add two more examples for deleting all/expired site transients
1 parent 965cc7d commit 8fcbde7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Transient_Command.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,18 @@ public function set( $args, $assoc_args ) {
161161
* $ wp transient delete --expired
162162
* Success: 12 expired transients deleted from the database.
163163
*
164+
* # Delete expired site transients.
165+
* $ wp transient delete --expired --network
166+
* Success: 1 expired transient deleted from the database.
167+
*
164168
* # Delete all transients.
165169
* $ wp transient delete --all
166170
* Success: 14 transients deleted from the database.
167171
*
172+
* # Delete all site transients.
173+
* $ wp transient delete --all --network
174+
* Success: 2 transients deleted from the database.
175+
*
168176
* # Delete all transients in a multsite.
169177
* $ wp transient delete --all --network && wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all
170178
*/

0 commit comments

Comments
 (0)