Search for a certain WordPress user. Will only respond if the account was found. Change user to either the login or email of the person your looking for.
[email protected]
if [[ "$( wp user get $user --skip-plugins --skip-themes 2> /dev/null )" != "" ]]
then
home_url=$( wp option get home --skip-plugins --skip-themes )
echo "$user exists on $home_url"
fi
Run it across a fleet
Open the console in CaptainCore Manager, pick the target sites, choose this recipe from the Cookbook picker and press run. The CLI streams each site's output back to the dock.
About the console →