Run a WP-CLI command one or more sites on WordPress multisite

WP-CLI uses the –url= global parameter to specify the request context for the execution of a command. Behind the scenes, –url= sets the $_SERVER[‘HTTP_HOST’], $_SERVER[‘REQUEST_URI’] and related request context variables. WordPress then interprets these variables to understand which site to load on a multisite network.

visit runcommand

Create a free website or blog at

Up ↑

%d bloggers like this: