bridgistic
v1.5.2Connect Claude to WordPress safely: signed requests, scoped keys, approvals, logs, snapshots.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bridgistic_list_sites List connected WordPress sites
List the WordPress sites this bridge can operate on, by alias. Use the returned alias as the `site` parameter in other tools. Returns no secrets.
bridgistic_get_site_info Get WordPress site info
Discover a site's stack before acting: WP/PHP versions, active theme, installed plugins (active flag), and detected frameworks (WooCommerce, Elementor, ACF). Read-only; requires the key's `site:read` scope. Always call this first on an unfamiliar site.
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_execute_php Execute PHP in WordPress context
Run PHP inside the full WordPress runtime ($wpdb, all functions, loaded plugins). Highest-privilege tool; requires the key's `php:execute` scope. Use `return` to surface a value; echoed output is captured separately. Args: - code (string): PHP to run. A leading "<?php" is optional. - site (string, optional): target alias. Returns: { output, return, errors[], exception, elapsed_ms }. Use when: a task has no dedicated structured tool yet. Prefer the structured tools (posts/options/etc.) when they exist, and snapshot before risky writes.
| Parameter | Type | Description |
|---|---|---|
code * | string | PHP source. Example: return get_option("blogname"); |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_db_query Run a SQL query
Execute SQL against the site database. The bridge classifies the statement: SELECT/SHOW/EXPLAIN/DESCRIBE/WITH need `db:read`; anything else needs `db:write`. Writes are routed through the Guard: dry_run previews impact in a rolled-back transaction, destructive writes auto-snapshot the affected table(s), and approval applies if the key requires it. Args: - sql (string): a single SQL statement using the site's real table prefix. - site (string, optional): target alias. - dry_run / approval_id / force: guard controls (writes only).
| Parameter | Type | Description |
|---|---|---|
sql * | string | Single SQL statement. |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_list_posts List posts / pages / CPTs
List content with pagination. Scope: `posts:read`. Args: post_type (default 'post'), status (default 'any'), search, per_page (≤100), page. Returns id/title/type/status/slug/link + total + has_more.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
post_type | string | |
search | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
status | string |
bridgistic_get_post Get a single post
Fetch one post/page/CPT by id with full content + meta. Scope: `posts:read`.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_create_post Create a post
Create a post/page/CPT. Scope: `posts:write`. Args: title, content, excerpt, status (draft|publish|...), slug, type, author, parent, meta (object). Supports dry_run and approval flow.
| Parameter | Type | Description |
|---|---|---|
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
author | integer | |
content | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
excerpt | string | |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
meta | object | |
parent | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
slug | string | |
status | string | |
title | string | |
type | string |
bridgistic_update_post Update a post
Update an existing post by id. Scope: `posts:write`. Auto-snapshots the post first (rollback via snapshot_id). Same fields as create. Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
content | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
excerpt | string | |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
meta | object | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
slug | string | |
status | string | |
title | string |
bridgistic_delete_post Delete a post
Trash (default) or permanently delete a post. Scope: `posts:write`. Auto-snapshots first. Set permanent=true to skip trash. Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
permanent | boolean | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_list_media List media
List attachments (id/title/mime/url). Scope: `posts:read`. Args: per_page, page.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_upload_media Upload media
Upload to the media library from a URL or base64. Scope: `media:write`. Provide either url, or filename + content_base64. Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
content_base64 | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
filename | string | |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
url | string |
bridgistic_delete_media Delete media
Permanently delete an attachment by id. Scope: `media:write`. Auto-snapshots first.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_list_users List users
List users (id/login/email/display_name/roles). Scope: `users:read`. Never returns passwords. Args: search, per_page, page.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
search | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_create_user Create a user
Create a user. Scope: `users:write`. Args: login, email (both required), role (default subscriber), display_name, password (auto-generated if omitted). Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
login * | string | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
display_name | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
password | string | |
role | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_update_user Update a user
Update a user by id (email, display_name, role). Scope: `users:write`. Auto-snapshots the user first. Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
display_name | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
email | string | |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
role | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_get_option Get an option
Read a wp_options value BY NAME. Scope: `options:read`. The name must be in the site's allowlist (WP Admin → Bridgistic → Settings) — secrets are unreadable by design.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_update_option Update an option
Write a wp_options value. Scope: `options:write`. Name must be allowlisted. Auto-snapshots the old value. Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
value |
bridgistic_list_plugins List plugins
List installed plugins with active flag + version. Scope: `plugins:manage`.
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_toggle_plugin Activate / deactivate a plugin
Activate or deactivate a plugin. Scope: `plugins:manage`. High-risk: ALWAYS routes through approval and snapshots active_plugins first. Args: plugin (file, e.g. 'woocommerce/woocommerce.php'), state ('activate'|'deactivate').
| Parameter | Type | Description |
|---|---|---|
plugin * | string | |
state * | string | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_fs_list List a directory
List files/dirs under a path (confined to ABSPATH). Scope: `fs:read`.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_fs_read Read a file
Read a file's contents (≤5MB, inside ABSPATH). Scope: `fs:read`.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_fs_write Write a file
Write a file inside ABSPATH. Scope: `fs:write`. PHP files may ONLY be written inside the uploads/bridgistic-sandbox dir. Overwrites auto-snapshot the old file. Supports dry_run + approval.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
path * | string | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_fs_delete Delete a file
Delete a file inside ABSPATH. Scope: `fs:write`. High-risk: always routes through approval and snapshots the file first. Supports dry_run.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_snapshot_create Create a snapshot
Manually capture reversible state before a risky change. Scope: `snapshot:manage`. Types + target: - post { id } - user { id } - option { name } - tables { tables: ["wp_options", ...] } (≤50k rows each) - file { path } Returns a snapshot_id for bridgistic_snapshot_restore.
| Parameter | Type | Description |
|---|---|---|
target * | object | |
type * | string | |
label | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_snapshot_restore Restore a snapshot
Roll back to a snapshot by id (undo a write/delete). Scope: `snapshot:manage`. Use the snapshot_id returned by a write tool or by bridgistic_snapshot_create / bridgistic_snapshot_list.
| Parameter | Type | Description |
|---|---|---|
snapshot_id * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_snapshot_list List snapshots
List recent snapshots (auto + manual) with id/type/label/size/created/restored. Scope: `snapshot:manage`.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_snapshot_delete Delete a snapshot
Delete a stored snapshot by id (frees space; cannot be restored after). Scope: `snapshot:manage`.
| Parameter | Type | Description |
|---|---|---|
snapshot_id * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_approval_status Check approval status
Check whether a queued operation has been approved. Returns status: pending | approved | rejected | executed. When approved, retry the ORIGINAL tool call with the same args plus approval_id to execute it.
| Parameter | Type | Description |
|---|---|---|
approval_id * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_usage Check this key's usage & limits
Return the calling key's tier, rate limit (req/min), monthly quota, and current usage (this minute / today / this month + top actions). Call before large batch operations to avoid hitting the quota mid-run.
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_memory_set Save a site memory note
Persist a fact about this site for future sessions (conventions, IDs, client preferences, quirks). Scope: `memory:write`. Args: key (required), value (any JSON), category (default 'general'). Overwrites the same category+key.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
category | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
value |
bridgistic_memory_get Get a site memory note
Read one memory note by key (+optional category). Scope: `memory:read`.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
category | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_memory_list List site memory
List stored memory notes, optionally filtered by category. Scope: `memory:read`. Call at the start of a session to recall what's known about a site.
| Parameter | Type | Description |
|---|---|---|
category | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_memory_delete Delete a site memory note
Remove a memory note by key (+optional category). Scope: `memory:write`.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
category | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_playbook_save Save a reusable playbook
Store an ordered, parameterised sequence of bridge operations for replay. Scope: `playbook:manage`. Each step = { method, route, params, save_as }. Use templates in params: - {{vars.NAME}} → a run-time input - {{steps.REF.data.result.id}} → a value from an earlier step's result envelope Example steps (create a landing page then set it as the front page): [ { "method":"POST","route":"posts","params":{"type":"page","title":"{{vars.title}}","status":"publish"},"save_as":"page" }, { "method":"POST","route":"options","params":{"name":"page_on_front","value":"{{steps.p…
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
steps * | array | |
description | string | |
name | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_playbook_list List playbooks
List saved playbooks (slug/name/description). Scope: `playbook:manage`.
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_playbook_get Get a playbook
Fetch one playbook incl. its steps. Scope: `playbook:manage`.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_playbook_run Run a playbook
Execute a saved playbook. Scope: `playbook:manage`; each step also enforces its own scope + the Guard. Args: - slug, vars (object of run inputs) - dry_run (preview every step), force (skip snapshot aborts) - approvals: { "<step ref>": "<approval_id>" } to resume a step that paused for approval. If a step needs approval the run pauses and returns { status: "paused_for_approval", paused_at, approval_id }; approve in WP Admin, then re-run with approvals mapped to that ref.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
approvals | object | |
dry_run | boolean | |
force | boolean | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
vars | object |
bridgistic_playbook_delete Delete a playbook
Delete a playbook by slug. Scope: `playbook:manage`.
| Parameter | Type | Description |
|---|---|---|
slug * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_schedule_create Schedule a playbook
Run a saved playbook unattended on a recurrence (WP-Cron). Scope: `schedule:manage`. The schedule runs under THIS key's current scopes, so the key must hold the scopes every step needs. Args: - playbook (slug), recurrence (once|bridgistic_5min|bridgistic_15min|bridgistic_30min|hourly|twicedaily|daily|weekly) - vars (object passed to the run), start_at (unix seconds, optional first-run time) - dry_run (run in preview mode every time — good for testing a schedule), force. Note: unattended runs never auto-approve. If a step needs approval the run records "paused_for_approval" and stops…
| Parameter | Type | Description |
|---|---|---|
playbook * | string | |
recurrence * | string | |
dry_run | boolean | |
force | boolean | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
start_at | integer | |
vars | object |
bridgistic_schedule_list List schedules
List scheduled playbooks with recurrence, next/last run, and last status. Scope: `schedule:manage`.
| Parameter | Type | Description |
|---|---|---|
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_schedule_toggle Enable / disable a schedule
Pause or resume a schedule without deleting it. Scope: `schedule:manage`.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
schedule_id * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_schedule_delete Delete a schedule
Remove a schedule and unregister its cron event. Scope: `schedule:manage`.
| Parameter | Type | Description |
|---|---|---|
schedule_id * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_schedule_run_now Run a schedule now
Trigger a scheduled playbook immediately (does not change its recurrence). Scope: `schedule:manage`. Useful to test a schedule end-to-end.
| Parameter | Type | Description |
|---|---|---|
schedule_id * | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_list_products List WooCommerce products
List store products with pagination. Scope: `woo:products:read`. Args: search, status (draft|publish|...), stock_status (instock|outofstock|onbackorder), category (slug), per_page (≤100), page. Returns id/name/sku/type/status/price/stock per product plus total and has_more. Use this instead of SQL or PHP for any product question — it works the same whether or not the store uses High-Performance Order Storage.
| Parameter | Type | Description |
|---|---|---|
category | string | Product category slug. |
page | integer | |
per_page | integer | |
search | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
status | string | |
stock_status | string |
bridgistic_woo_get_product Get one WooCommerce product
Fetch a single product by id, including description, categories, tags, attributes, and every variation's own price and stock. Scope: `woo:products:read`. For a variable product, the variation list is usually the real answer to "is this in stock?".
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_create_product Create a WooCommerce product
Create a simple product. Scope: `woo:products:write`. `name` is required; prices must be non-negative numbers. Supports dry_run to preview the fields that would be set, and the approval queue when the key requires it. Publishes only if you pass status='publish' — the store's own default applies otherwise.
| Parameter | Type | Description |
|---|---|---|
name * | string | Product name. Required. |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
description | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
manage_stock | boolean | |
regular_price | string | Decimal string, e.g. "19.99". |
sale_price | string | |
short_description | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
sku | string | |
status | string | |
stock_quantity | integer | |
stock_status | string |
bridgistic_woo_update_product Update a WooCommerce product
Update an existing product. Scope: `woo:products:write`. Only the fields you pass are changed. Overwrites prior values, so the bridge snapshots the product first and dry_run returns an explicit before/after for exactly the fields supplied.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
description | string | |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
manage_stock | boolean | |
name | string | |
regular_price | string | |
sale_price | string | |
short_description | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
sku | string | |
status | string | |
stock_quantity | integer | |
stock_status | string |
bridgistic_woo_list_orders List WooCommerce orders
List orders newest-first. Scope: `woo:orders:read`. Args: status (comma-separated, e.g. 'processing,completed'), customer_id, after (Y-m-d or ISO 8601), per_page (≤100), page. Returns id/number/status/total/currency/created/customer plus billing name, email, and country. Full addresses and payment details are never returned.
| Parameter | Type | Description |
|---|---|---|
after | string | Only orders created on or after this date. |
customer_id | integer | |
page | integer | |
per_page | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
status | string | Comma-separated statuses, e.g. "processing,completed". |
bridgistic_woo_get_order Get one WooCommerce order
Fetch a single order by id with its line items, shipping and tax totals, customer note, and payment method name. Scope: `woo:orders:read`. Payment tokens, transaction ids, and card data are never included.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_update_order_status Change a WooCommerce order's status
Move an order to a different status. Scope: `woo:orders:write`. The status is validated against the statuses this store actually defines, so plugin-added ones work and typos are refused with the valid list. SIDE EFFECTS: a status change fires WooCommerce hooks — customer emails, stock adjustments, and payment-gateway actions. Setting the status back afterwards does not un-send an email or un-restock an item, which is why this is marked destructive, snapshots first, and honours the approval queue. Use dry_run to see the transition before committing.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
status * | string | Target status, e.g. "processing", "completed", "refunded". The "wc-" prefix is optional. |
approval_id | string | Approval id returned by a previous call that needed approval. Re-pass the SAME args plus this id once an admin approves. |
dry_run | boolean | If true, return what WOULD change without modifying anything. Nothing is persisted, snapshotted, or queued. |
force | boolean | Proceed even if a pre-op snapshot could not be taken. Irreversible — use sparingly. |
note | string | Order note recorded alongside the change. |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_list_customers List WooCommerce customers
List users with the customer role, newest-first, with their order count and lifetime spend. Scope: `woo:customers:read`. Args: search (name/email/login), per_page (≤100), page. Password hashes, session tokens, and payment methods are never returned.
| Parameter | Type | Description |
|---|---|---|
page | integer | |
per_page | integer | |
search | string | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_get_customer Get one WooCommerce customer
Fetch a single customer by user id with order count, lifetime spend, billing/shipping country and city, and last order date. Scope: `woo:customers:read`. Street addresses, phone numbers, password hashes, and payment methods are not exposed.
| Parameter | Type | Description |
|---|---|---|
id * | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_inventory_status WooCommerce inventory status
Out-of-stock and low-stock products in one call, with counts. Scope: `woo:analytics:read`. `low_stock_threshold` defaults to the store's own low-stock setting. Only stock-managed products can be low, so unmanaged products are counted separately rather than reported as zero.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
low_stock_threshold | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |
bridgistic_woo_sales_summary WooCommerce sales summary
Revenue, order count, average order value, orders by status, and top products for the last N days (default 30, max 365). Scope: `woo:analytics:read`. Counts only processing, completed, and on-hold orders — pending, cancelled, and failed orders are excluded so the revenue figure reconciles with what the store actually took. The counted statuses are echoed back in the response.
| Parameter | Type | Description |
|---|---|---|
days | integer | |
site | string | Site alias to target (e.g. "guns2ammo"). Omit when only one site is configured. |