How to disable the custom database table queries when using ACF Custom Database Tables version 1.0.x
We recently had a request as to how you could prevent ACF Custom Database Tables from querying custom table data when using ACF’s get_field() function.
This isn’t something we had built-in but for anyone needing to implement this, you can use the following code to achieve exactly that.
A few things to keep in mind:
This will ONLY work with versions 1.0.x as our service container and core object methods are changing in version 1.1.
This approach calls directly upon our service container which is something that you shouldn’t get into the habit of doing unless you:
Really know what you are doing and;
Thoroughly test plugin updates in a non-production environment before releasing them. This is particularly important because our service container is not an API and is subject to change as the plugin evolves.