Functions
The full list of PHP functions
ACPT exposes a complete set of PHP functions to manage custom post types and meta fields.
The list below is sorted alphabetically so a specific function is easy to find. If you're looking for functions grouped by area (custom post types, taxonomies, fields, field values, forms, dynamic blocks, Custom Content Types...), use your browser's search (Ctrl+F / Cmd+F) on the function name or description.
Display a field value
Check if a Flexible Content field has nested blocks
Check if a Repeater or List field has nested rows
Get the allowed options list for a Select / Radio / Checkbox field
Append a row to a Repeater field value
Associate a custom taxonomy to a custom post type
Explicitly create the physical database table from the stored definition
Delete a dynamic block
Delete a form
Delete a form field
Delete a meta box
Delete a meta field
Delete a meta field value
Delete a field group
Delete an option page
Delete a custom post type
Delete a custom table definition
Delete a Custom Content Type table group
Delete a custom taxonomy
Drop the physical database table
Fetch block values from a Flexible Content field
Fetch a field value nested inside a Flexible Content block
Get a dynamic block object representation
Get a single meta box object representation
Fetch a nested field value from a Repeater field
Fetch a field value
Fetch all field values for a meta box
Get a form field object representation
Get a form object representation
Get a specific advanced option value of a meta field
Get the before/after advanced-option text configured on a meta field
Get a single meta field object representation
Get an array of meta field object representations
Get a single field group object representation
Get an array of field group object representations
Get a Custom Content Type table group object representation
Get a custom table object representation
Get the synchronisation status of a custom table
Check if a field is visible based on its value
Register a new option page
Register a new custom post type
Register a new custom taxonomy
Remove the association between a taxonomy and a post type
Create or update a dynamic block
Create or update a form
Create or update a form field
Create or update a meta box
Create or update a meta field
Create or update a meta field value
Create or update a field group
Create or update a custom table definition
Create or update a Custom Content Type table group
Synchronise the physical database table with the stored definition
IMPORTANT NOTE: Every function accepts parameters in both camelCase and snake_case.
Quick example:
Last updated