This is command-only, no explanations.

Paste into SSH & WP-CLI Runbook

# SSH & WP-CLI Runbook

⚠️ Use with caution. Commands affect production data.

—

## Connect to Server
“`bash
ssh username@server_ip
cd public_html
wp –info


Set ALL Products to Draft (Emergency Lockdown)

wp --skip-themes --skip-plugins post update \
$(wp --skip-themes --skip-plugins post list --post_type=product --format=ids) \
--post_status=draft

Delete ALL Draft Products (Full Reset)

wp --skip-themes --skip-plugins post delete \
$(wp --skip-themes --skip-plugins post list --post_type=product --post_status=draft --format=ids) \
--force

Publish ALL Draft Products

wp --skip-themes --skip-plugins post update \
$(wp --skip-themes --skip-plugins post list --post_type=product --post_status=draft --format=ids) \
--post_status=publish

Publish Drafts WITH Price Only (MAP-Safe)

wp --skip-themes --skip-plugins post update \
$(wp --skip-themes --skip-plugins post list \
--post_type=product --post_status=draft \
--meta_key=_regular_price --meta_compare='!=' --meta_value='' \
--format=ids) \
--post_status=publish

Rollback — Set Published Products Back to Draft

wp --skip-themes --skip-plugins post update \
$(wp --skip-themes --skip-plugins post list --post_type=product --post_status=publish --format=ids) \
--post_status=draft

Cache Purge (MANDATORY)

  • Cloudways → Manage Services → Varnish → Purge

  • Clear WordPress cache plugin

  • Hard refresh browser


---

# ? PAGE 4 — **Pre-Publish QA Checklist**
### Paste into **Pre-Publish QA Checklist**
“`markdown
# Pre-Publish QA Checklist (Required)

This checklist must be completed before any product or brand is published.

—

## A. Pricing & MAP
– ⬜ Regular price present
– ⬜ No $0 prices
– ⬜ MAP rules reviewed
– ⬜ No restricted pricing visible

—

## B. Product Identity
– ⬜ SKU correct and unique
– ⬜ Product name accurate
– ⬜ Brand assigned correctly

—

## C. Categories & Tags
– ⬜ Correct primary category
– ⬜ Proper hierarchy
– ⬜ Furniture type tag present
– ⬜ Tags lowercase and clean

—

## D. Attributes & Filters
– ⬜ Attributes appear correctly
– ⬜ Attribute order correct
– ⬜ Filters work on category pages
– ⬜ No duplicate/custom attributes

—

## E. Media & Content
– ⬜ Main image loads
– ⬜ Gallery images load
– ⬜ Descriptions complete
– ⬜ No placeholder text

—

## Approval
– Brand:
– Reviewed by:
– Date:
– Notes: