Functions
The full list of PHP functions
ACPT exposes a complete set of PHP functions to manage custom post types and meta fields.
Use this list for quick reference:
Custom post types
register_acpt_post_type
- Register a new custom post type.delete_acpt_post_type
- Delete a custom post type.
Taxonomies
register_acpt_taxonomy
- Register a new taxonomy.delete_acpt_taxonomy
- Delete a taxonomy.assoc_acpt_taxonomy_to_acpt_post
- Associate a custom taxonomy to a custom post type.remove_assoc_acpt_taxonomy_from_acpt_post
- Remove the association between a taxonomy to a post type.
Option pages
register_acpt_option_page
- Register a new option page.delete_acpt_option_page
- Delete an option page.
Forms
save_acpt_form
- Create/edit a new form.delete_acpt_form
- Delete a form.save_acpt_form_field
- Save a form field.delete_acpt_form_field
- Delete a form field.get_acpt_form_object
- Get a form object representation.get_acpt_form_field_object
- Get a form field object representation.
Fields
save_acpt_meta_group
- Create/edit a field group.delete_acpt_meta_group
- Delete a field group.get_acpt_meta_group_objects
- Get an array of field group object representations.get_acpt_meta_group_object
- Get single field group object representation.save_acpt_meta_box
- Create/edit a meta box.delete_acpt_meta_box
- Delete a meta box.get_acpt_box_object
- Get single meta box object representation.save_acpt_meta_field
- Create/edit a meta field.delete_acpt_meta_field
- Delete a meta field.get_acpt_meta_field_objects
- Get an array of meta fields object representations.get_acpt_meta_field_object
- Get single meta field object representation.
Manage field values
save_acpt_meta_field_value
- Create/edit meta field value.delete_acpt_meta_field_value
- Delete meta field value.get_acpt_fields
- Fetch all box field valuesacpt_field_has_rows
- Check if a field has nested valuesacpt_field_has_blocks
- Check if a field has nested values.get_acpt_field
- Fetch the field value.get_acpt_child_field
- Fetch a nested field value.get_acpt_block
- Fetch the block values nested in a Flexible field.get_acpt_block_child_field
- Fetch the field values nested in a block.acpt_field
- Display the field value.is_acpt_field_visible
- Checks if a field is visible (based on its value).
IMPORTANT NOTE: Every function is capable of working with parameters both in camel case and snake case.
Quick example:
Last updated