Skip to content

Commit 965cc7d

Browse files
committed
Add example to delete all transients in a multisite
1 parent b41d4e7 commit 965cc7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Transient_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ public function set( $args, $assoc_args ) {
164164
* # Delete all transients.
165165
* $ wp transient delete --all
166166
* Success: 14 transients deleted from the database.
167+
*
168+
* # Delete all transients in a multsite.
169+
* $ wp transient delete --all --network && wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all
167170
*/
168171
public function delete( $args, $assoc_args ) {
169172
$key = ( ! empty( $args ) ) ? $args[0] : NULL;

0 commit comments

Comments
 (0)