WA SWITCHER — SETUP GUIDE
==========================

You have two things to install:

1) wa-switcher-agent.zip  -> install on EVERY WordPress site (all 20+)
2) wa-dashboard.zip       -> host ONCE, anywhere with PHP + cURL (cPanel, Hostinger, etc.)


STEP 1 — Install the agent plugin on each site
------------------------------------------------
On every WordPress site:
1. Plugins -> Add New -> Upload Plugin -> choose wa-switcher-agent.zip -> Install -> Activate
2. Go to Tools -> WA Switcher Agent
3. Note down: Site name, Site URL, and API Key (you'll paste these into the dashboard)

Repeat for all 20+ sites (a few minutes each).


STEP 2 — Host the dashboard
------------------------------------------------
1. Upload dashboard.php AND .htaccess to any PHP hosting (a small shared hosting plan
   or a subfolder on any of your existing sites works fine, e.g. yoursite.com/wa-dashboard/)
2. Visit the page in your browser for the first time
3. You'll be asked to set a password — set a strong one. This protects access to all
   your sites' API keys.


STEP 3 — Connect your sites
------------------------------------------------
1. Log in to the dashboard
2. For each site, fill in Site name / Site URL / API Key from Step 1, click "+ Add Site"
3. Click "Test" next to a site to confirm it connects (shows "Connected")


STEP 4 — Update the number everywhere
------------------------------------------------
1. Tick the sites you want to update (all are checked by default)
2. Enter the OLD number exactly as it currently appears on your sites
   (check one live site to confirm the exact format: e.g. 919999999999,
   +91 99999 99999, or as part of a wa.me/... link)
3. Click "Preview All" first — this shows how many matches were found per site,
   with NO changes made
4. If the counts look right, enter the NEW number and click "Update All Now"


NOTES
------------------------------------------------
- If the number appears in different formats on different sites (e.g. some sites
  store it with +91, others without), run the update twice — once per format.
- Always back up each site's database before a bulk update, especially the first time.
- Keep wa_dashboard_data.json private — the included .htaccess blocks direct access
  on Apache hosting. If your host uses Nginx, ask your host to add an equivalent
  "deny access to wa_dashboard_data.json" rule, or place the dashboard folder
  behind an extra layer (e.g. HTTP auth) for peace of mind.
- To regenerate a site's API key later (e.g. if compromised), go to that site's
  Tools -> WA Switcher Agent -> Regenerate API Key, then update it in the dashboard.
