WordPress Abilities – Connect ADBC to WordPress Tools and Services
Starting with ADBC 4.3.0, compatible WordPress tools and services can discover and use the plugin through the WordPress Abilities API. An integration can inspect cleanup information, read database records, manage retention and request supported maintenance without navigating dashboard pages.
An ability is a named action with defined inputs, a result and permission checks. ADBC registers names such as adbc/get-autoload-health and adbc/delete-options.
Use abilities with a compatible WordPress service, plugin integration or REST client that supports the WordPress Abilities API and ADBC’s confirmation workflow.
1. Requirements and activation
- ADBC 4.3.0 or later.
- WordPress 6.9+, PHP 8.2+ and the PHP OpenSSL extension.
- An administrator account; a super administrator on WordPress Multisite.
- In DB Cleaner → Settings → Developer integrations, turn on Expose plugin abilities. Changes save automatically.
2. Free, Pro and Premium availability
Free: actions marked All editions work with the features available in Free. Paid actions return an upgrade invitation instead of paid-feature results or making changes. All four SQL tools require Pro or Premium.
Pro and Premium: actions marked Pro + Premium work in both editions. Premium provides get-remote-scan-balance; Pro provides get-pro-scan-balance. The tables identify edition-specific actions.
WordPress authentication and access
External ability requests use a WordPress administrator Application Password over HTTPS. Create a dedicated password in Users → Profile → Application Passwords and share it only with a trusted service. On Multisite, use a super administrator.
WordPress verifies the credentials, and ADBC checks the administrator’s permissions before running the requested ability. The authorized service can use read and write abilities available in your edition.
Results can include sensitive database values. Use a dedicated Application Password with a trusted service. Revoke it in your WordPress profile when access is no longer needed; this blocks further requests and future background work.
3. Read access, writes and confirmation
Read abilities return information. Write abilities change database content, settings or maintenance state. Destructive abilities require a preview and separate approval before execution.
The tables mark actions that need a Preview. Actions marked No preview, such as changing automatic counts or cancelling a job, run when requested.
- Request a destructive action to receive an impact preview.
- Review the targets, warning, available row counts and size. Counts can be estimated or unavailable; size does not guarantee reclaimed disk space.
- Show the preview to the user and wait for a new explicit approval. Then call
adbc/confirm-destructive-actionwith the returnedconfirmation_request_idandapproved_in_chat: true. - Check the result. If it returns a job ID, poll
adbc/get-jobuntil the job finishes.
Previews expire after five minutes and can be used once. Use the same site, administrator and Application Password for preview and confirmation. If authorization changes or a SQL snapshot is no longer current, request and approve a fresh preview. Eligible items in a category cleanup can change before execution.
Keep a database backup before maintenance. Use a trusted integration that waits for your approval. ADBC cannot independently verify that a chat reply came from a human.
4. SQL, cleanup jobs and change logs
query-databaseaccepts SELECT only;explain-querytakes a SELECT statement and returns its ordinary EXPLAIN plan. ADBC adds EXPLAIN for you; do not include it in the input. SQL tools require Pro or Premium. Statements are limited to 32 KiB. SELECT returns 100 rows by default, up to 1,000; truncation of large values or results is reported.execute-sqlsupports single-table INSERT … VALUES, UPDATE … WHERE and DELETE … WHERE on supported InnoDB tables with primary keys, up to 1,000 targeted rows. Unsupported SQL receives an explanation.- Raw SQL bypasses WordPress hooks, ADBC retention rules and native core-item protection. Review the exact query and targets before approving it.
- SQL writes return their results immediately. Cleanup jobs run in batches; poll
adbc/get-jobfor final counts. Native cleanup follows applicable cleanup-method and retention settings. - Deleting the Application Password or losing administrator permissions stops further requests and future background units. Changed cleanup settings can also stop a job. Cancelling a job does not undo completed changes. If an outcome is unknown, verify the database before retrying.
- Review executed maintenance in Info & logs → Database changes. A logging warning does not mean a completed database change failed.
5. Discovery and execution
Discover registered abilities at GET /wp-json/wp-abilities/v1/abilities. Read-only ADBC abilities use GET on their /run routes. Writes and confirmations use POST, with JSON input inside an input object. Use your site’s actual REST base, including any WordPress subdirectory or plain-permalink routing.
For example, adbc/get-autoload-health returns autoload size and health. adbc/get-options-list accepts filters to inspect options. Destructive tools accept the exact targets specified by their schemas; copy full selected-item objects from the matching list result rather than guessing identifiers.
6. Available actions by category
Read returns information. Write changes data, settings or maintenance state. Preview requires separate approval. Immediate means execution returns its result directly; Job means follow the returned job ID.
Inspect each ability’s input schema before constructing its arguments.
General cleanup and retention
Inspect category counts and items; clean selected items or eligible categories; manage retention and automatic counts.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-general-data |
Read | Not required | All editions
Immediate |
adbc/get-items |
Read | Not required | All editions
Immediate |
adbc/delete-items |
Write | Preview | All editions
Job |
adbc/purge-items |
Write | Preview | All editions
Job |
adbc/get-keep-last |
Read | Not required | All editions
Immediate |
adbc/set-keep-last |
Write | Preview | All editions
Immediate |
adbc/delete-keep-last |
Write | Preview | All editions
Immediate |
adbc/activate-auto-count |
Write | No preview | All editions
Immediate |
adbc/deactivate-auto-count |
Write | No preview | All editions
Immediate |
Tables
Inspect tables, rows, columns and indexes; request table maintenance or deletion. Emptying retains the table structure; deleting drops the table.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-tables-list |
Read | Not required | All editions
Immediate |
adbc/get-tables-names |
Read | Not required | All editions
Immediate |
adbc/get-table-rows |
Read | Not required | All editions
Immediate |
adbc/get-table-structure |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-tables |
Read | Not required | All editions
Immediate |
adbc/count-total-tables-to-optimize |
Read | Not required | All editions
Immediate |
adbc/count-total-tables-to-repair |
Read | Not required | All editions
Immediate |
adbc/count-total-tables-with-invalid-prefix |
Read | Not required | All editions
Immediate |
adbc/optimize-tables |
Write | Preview | All editions
Job |
adbc/repair-tables |
Write | Preview | All editions
Job |
adbc/refresh-counts-tables |
Write | No preview | All editions
Job |
adbc/convert-to-innodb-tables |
Write | Preview | All editions
Job |
adbc/empty-rows-tables |
Write | Preview | All editions
Job |
adbc/delete-tables |
Write | Preview | All editions
Job |
Options and autoload
Inspect options and autoload health; change selected autoload flags or delete options.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-options-list |
Read | Not required | All editions
Immediate |
adbc/count-big-options |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-options |
Read | Not required | All editions
Immediate |
adbc/get-autoload-health |
Read | Not required | All editions
Immediate |
adbc/set-autoload-to-yes-options |
Write | Preview | All editions
Job |
adbc/set-autoload-to-no-options |
Write | Preview | All editions
Job |
adbc/delete-options |
Write | Preview | All editions
Job |
Transients
Inspect transient records and expiry; change their autoload flags or delete selected transients.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-transients-list |
Read | Not required | All editions
Immediate |
adbc/count-big-transients |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-transients |
Read | Not required | All editions
Immediate |
adbc/count-expired-transients |
Read | Not required | All editions
Immediate |
adbc/set-autoload-to-yes-transients |
Write | Preview | All editions
Job |
adbc/set-autoload-to-no-transients |
Write | Preview | All editions
Job |
adbc/delete-transients |
Write | Preview | All editions
Job |
Post metadata
Inspect post metadata, including large, duplicated and unused entries; delete selected records.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-posts-meta-list |
Read | Not required | All editions
Immediate |
adbc/count-big-posts-meta |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-posts-meta |
Read | Not required | All editions
Immediate |
adbc/count-duplicated-posts-meta |
Read | Not required | All editions
Immediate |
adbc/count-unused-posts-meta |
Read | Not required | All editions
Immediate |
adbc/delete-posts-meta |
Write | Preview | All editions
Job |
User metadata
Inspect user metadata, including large, duplicated and unused entries; delete selected records.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-users-meta-list |
Read | Not required | All editions
Immediate |
adbc/count-big-users-meta |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-users-meta |
Read | Not required | All editions
Immediate |
adbc/count-duplicated-users-meta |
Read | Not required | All editions
Immediate |
adbc/count-unused-users-meta |
Read | Not required | All editions
Immediate |
adbc/delete-users-meta |
Write | Preview | All editions
Job |
Post types and posts
Inspect post types and their posts. Deleting by post type is a broad action: inspect the selected type and site before approval.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-post-types-list |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-post-types |
Read | Not required | All editions
Immediate |
adbc/count-total-large-non-public-post-types |
Read | Not required | All editions
Immediate |
adbc/list-posts-by-post-type |
Read | Not required | All editions
Immediate |
adbc/delete-posts-by-post-type |
Write | Preview | All editions
Job |
Cron jobs
Inspect scheduled events and events with no registered action; delete selected cron events.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-cron-jobs-list |
Read | Not required | All editions
Immediate |
adbc/count-total-not-scanned-cron-jobs |
Read | Not required | All editions
Immediate |
adbc/count-total-cron-jobs-with-no-action |
Read | Not required | All editions
Immediate |
adbc/delete-cron-jobs |
Write | Preview | All editions
Job |
Stored values
Read a supported item’s stored value. Returned data may contain sensitive information.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-column-value-from-table |
Read | Not required | All editions
Immediate |
Automation schedules
Manage ADBC cleanup schedules. Creating a schedule configures future cleanup; it does not mean that cleanup has already run. Automation event logs require Pro/Premium.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/list-tasks |
Read | Not required | All editions
Immediate |
adbc/get-task |
Read | Not required | All editions
Immediate |
adbc/create-task |
Write | Preview | All editions
Immediate |
adbc/update-task |
Write | Preview | All editions
Immediate |
adbc/delete-task |
Write | Preview | All editions
Immediate |
adbc/get-task-events-log |
Read | Not required | Pro + Premium
Immediate |
adbc/clear-task-events-log |
Write | Preview | Pro + Premium
Immediate |
SQL database tools
Read database context, run a supported SELECT, inspect its ordinary EXPLAIN plan, or preview a restricted SQL write. All four tools require Pro/Premium.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-database-context |
Read | Not required | Pro + Premium
Immediate |
adbc/query-database |
Read | Not required | Pro + Premium
Immediate |
adbc/explain-query |
Read | Not required | Pro + Premium
Immediate |
adbc/execute-sql |
Write | Preview | Pro + Premium
Immediate |
Settings and diagnostics
Read diagnostics and manage supported operational settings.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-setting |
Read | Not required | All editions
Immediate |
adbc/update-settings |
Write | Preview | All editions
Immediate |
adbc/get-system-information |
Read | Not required | All editions
Immediate |
adbc/get-all-schedule-frequencies |
Read | Not required | All editions
Immediate |
Logs
Read supported plugin and WordPress logs, or clear the ADBC debug log.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-logs-content |
Read | Not required | All editions
Immediate |
adbc/clear-logs-content |
Write | Preview | All editions
Immediate |
Database analytics
Read database/table history. The lightweight last-week summary is available in all editions; analytics charts and the analytics summary require Pro/Premium.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-last-week-database-size-for-free-version |
Read | Not required | All editions
Immediate |
adbc/get-database-chart-data-by-day |
Read | Not required | Pro + Premium
Immediate |
adbc/get-database-chart-data-by-month |
Read | Not required | Pro + Premium
Immediate |
adbc/get-tables-chart-data-by-day |
Read | Not required | Pro + Premium
Immediate |
adbc/get-tables-chart-data-by-month |
Read | Not required | Pro + Premium
Immediate |
adbc/get-last-week-database-size |
Read | Not required | Pro + Premium
Immediate |
Plugins, themes and activity
List addons, inspect activity, or clear the entire activity history. Clearing is never restricted to the currently displayed filters.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-addons-list |
Read | Not required | Pro + Premium
Immediate |
adbc/get-addons-activity-timeline |
Read | Not required | Pro + Premium
Immediate |
adbc/clear-addons-activity |
Write | Preview | Pro + Premium
Immediate |
Existing scans and ownership corrections
Check existing scan data and manually correct ownership. No tool starts a local or remote scan. Premium and Pro use different balance tools.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/is-scan-exists |
Read | Not required | Pro + Premium
Immediate |
adbc/get-remote-scan-balance |
Read | Not required | Premium only
Immediate |
adbc/get-pro-scan-balance |
Read | Not required | Pro only
Immediate |
adbc/edit-scan-results-tables |
Write | Preview | Pro + Premium
Immediate |
adbc/edit-scan-results-options |
Write | Preview | Pro + Premium
Immediate |
adbc/edit-scan-results-transients |
Write | Preview | Pro + Premium
Immediate |
adbc/edit-scan-results-posts-meta |
Write | Preview | Pro + Premium
Immediate |
adbc/edit-scan-results-users-meta |
Write | Preview | Pro + Premium
Immediate |
adbc/edit-scan-results-post-types |
Write | Preview | Pro + Premium
Immediate |
adbc/edit-scan-results-cron-jobs |
Write | Preview | Pro + Premium
Immediate |
Licensing
Inspect, activate, refresh or deactivate the paid plugin license.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-license-status |
Read | Not required | Pro + Premium
Immediate |
adbc/activate-license |
Write | No preview | Pro + Premium
Immediate |
adbc/refresh-license |
Write | No preview | Pro + Premium
Immediate |
adbc/deactivate-license |
Write | Preview | Pro + Premium
Immediate |
Background jobs and final confirmation
Read job progress, cancel future work, or execute an approved preview. A cancellation does not undo completed changes.
| Action | Access | Confirmation | Edition / execution |
|---|---|---|---|
adbc/get-job |
Read | Not required | All editions
Immediate |
adbc/cancel-job |
Write | No preview | All editions
Immediate |
adbc/confirm-destructive-action |
Write | Final approval | All editions
Runs approved action |