How to activate support for a custom field type when using the ACF Custom Database Tables plugin. For more information, see https://support.hookturn.io.test/acf-custom-database-tables/doc/how-to-activate-support-for-a-custom-field-type/.
<?php | |
// This will register a custom field type as supported by the plugin. | |
// This affects table definition generation and can go in your functions.php | |
// file or a plugin. | |
add_filter( 'acfcdt/is_supported_field', function ( $is_supported, $field ) { | |
if ( $field['type'] === 'custom_acf_field_type' ) { | |
$is_supported = true; | |
} | |
return $is_supported; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment