If you need to prevent fields from generating columns on a particular table, you can use the following filter: <?php /* * 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 […]
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 <?php // Disables the get field intercept do_action(‘acfcdt/disable_get_field_intercept’); […]
We never share your data.
Read our
Privacy Policy
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: <?php /* * This will register a custom field type as supported by the plugin. * This affects table definition […]
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 […]
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 […]
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 […]
By default, ACF Remote Sync will list all field groups for sync — this includes field groups registered via PHP or field groups loaded via ACF JSON. If you wish to prevent local field groups from remote sync, you may use the acfrs/rest/should_export_local_field_groups filter as per the example below. add_filter( ‘acfrs/rest/should_export_local_field_groups’, ‘__return_false’ ); You may […]
You may override the field groups that render via the REST API by using the acfrs/rest/export_field_groups filter. This filter makes it possible to: Add field groups that are not already available. Remove field groups. Modify field groups and their fields in order to protect any data that should not be exposed. Examples You may use […]
By default, ACF Remote Sync will remove any field group settings associated with ACF Custom Database Tables. If you are using ACF Custom Database Tables and wish to sync these settings, you may use the the acfrs/rest/should_export_acf_custom_database_table_settings filter as per the example below. add_filter( ‘acfrs/rest/should_export_acf_custom_database_table_settings’, ‘__return_true’ ); You may place this code in your theme’s […]
By default, the plugin does not bypass storage of metadata to the core meta tables as doing so can create issue with other plugins that are dependent on meta data existing in the core meta tables. However, you may configure your site to bypass core tables where data is stored in a custom database table. […]
Product news, tips, and other cool things we make.
We never share your data. Read our Privacy Policy