Custom Content Types
acpt/list-tables, acpt/get-table, acpt/save-table, acpt/sync-table, acpt/delete-table, acpt/get-table-status, acpt/list-table-groups, acpt/get-table-group, acpt/save-table-group, acpt/delete-table-gro
Category: acpt-content-model · Default capability: manage_options
These 15 abilities cover the three CCT layers: table groups (the container that binds tables to a WordPress context), tables (schema definitions), and records (rows).
Table groups
acpt/list-table-groups
R
Returns all table groups, including their location/visibility rules and member tables
acpt/get-table-group
R
Returns a single table group by name
acpt/save-table-group
Creates a table group, or updates it if the name already exists
acpt/delete-table-group
D
Deletes a table group; member tables are detached, not deleted
acpt/list-table-groups
No input required.
$result = wp_get_ability('acpt/list-table-groups')->execute();acpt/get-table-group
name
string
Yes
acpt/save-table-group
Accepts the full table-group shape — name, label, display (STANDARD / ACCORDION / VERTICAL_TABS / HORIZONTAL_TABS), and locationRules[] (each rule: belongsTo, operator, find). Identity is by name: send the same name again to update in place. Omitted top-level fields are preserved on an update.
acpt/delete-table-group
name
string
Yes
Tables
acpt/list-tables
R
Returns all table definitions (schema metadata only, not physical sync status)
acpt/get-table
R
Returns a single table definition by name
acpt/get-table-status
R
Returns whether the physical table is not_created / synced / not_synced, plus the pending SQL diff
acpt/save-table
Creates a table definition, or updates it if the name already exists — definition only
acpt/sync-table
D
Creates or alters the physical database table to match its stored definition (no-op if already in sync)
acpt/delete-table
D
Deletes the table definition (metadata only — does not drop the physical table)
acpt/save-table
Accepts the table schema: name, label, tableGroupId (create the group first with acpt/save-table-group and pass its id — preferred over the deprecated flat location shim), columns[], indexes[], foreignKeys[], primary-key strategy, and the timestamp / soft-delete toggles. The column, index, and foreign-key shapes match the CCT documentation; a partial update merges onto the stored definition rather than replacing it.
acpt/get-table / acpt/get-table-status / acpt/delete-table
name
string
Yes
Table records
Every record ability takes table_name, and the CRUD operations require the matching flag (read / create / update / delete) enabled in the table's Expose via REST API setting — the same gate as the CCT REST API.
acpt/list-table-records
R
Returns paginated records for a table
acpt/get-table-record
R
Returns a single record by id
acpt/create-table-record
Creates a record
acpt/update-table-record
Updates a record
acpt/delete-table-record
D
Deletes a record
acpt/list-table-records
table_name
string
Yes
page
integer
No
per_page
integer
No
order_by
object
No
where
object
No
s
string
No
only_ids
boolean
No
acpt/get-table-record / acpt/delete-table-record
table_name
string
Yes
id
string or integer
Yes
acpt/create-table-record / acpt/update-table-record
table_name
string
Yes
id
string or integer
update only
data
object
Yes
Last updated