Disabling storage or retrieval to and from custom database tables

A collection of action hooks can be fired to disable/enable data intercept handlers when necessary. Once disabled, data will not be intercepted until re-enabled. You may fire these actions once for a global effect should you need to. How to disable data retrieval from custom database tables Disables the get field intercept do_action(‘acfcdt/disable_get_field_intercept’); // Data […]

Phil Kurth Phil Kurth

Disabling fields for a particular table

If you need to prevent fields from generating columns on a particular table, you can use the following filter: * Filtering the array of supported fields for a given table. This affects table * definition generation and can go in your functions.php file or a plugin. */ add_filter( ‘acfcdt/field_group_supported_fields’, function ( $supported_fields, $table_name ) { […]

Want it delivered fresh? You know what to do…

We never share your data.
Read our Privacy Policy

Controlling column data types

As of version 1.1, it is possible to control the data types of custom database table columns. Controlling the type can be useful in reducing your database size and increasing the efficiency of your queries. It’s important to note, due to the way databases work, changing the data types on an existing database may result […]

Changing the table definition directory

The plugin will attempt to automatically generate a directory to house all related files when: An ACF Field Group is saved via the WordPress admin. The table generation on that field group is active. The possible locations for this directory are: If using ACF JSON, the acf-json/database-tables directory will be created. If no acf-json directory […]

Bypassing data storage in core meta tables

By default, the plugin does not prevent storage of metadata to the core meta tables as doing so may introduce interoperability issues with other plugins that are dependent on metadata existing in the core meta tables. However, you may configure your site to bypass the core metatables where fields will store data in a custom […]

Activating support for a custom field type

If you are using custom ACF field types and wish to store their values in a custom database table, you need to register the field type as supported. You can do so using the following: * This will register a custom field type as supported by the plugin. * This affects table definition generation and […]

Activating join tables on eligible fields

Join tables are available where required for eligible fields and can be activated using filters. The following fields are eligible for join tables: Relationship Post Object Page Link User Taxonomy Global activation It is possible to set a global setting that will enable join tables on all eligible fields. We don’t recommend this, as you […]

1 2 3

Good dev stuff, delivered.

Product news, tips, and other cool things we make.

We never share your data. Read our Privacy Policy

© 2016 – 2024 Hookturn Digital. All rights reserved.