Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 466 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 466 Bytes

WP-CLI

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser.

Snippets

Delete all comments from all sites in multisite

for url in $(wp site list --field=url); 
	do echo "Deleting all comments from $url"; 
	wp comment delete "$(wp comment list --field=ID --url="$url")" --url="$url" --force; 
done;