Caldera Forms Queries is a developer-facing tool for selecting or deleting data from the Caldera Forms database tables, using object-oriented PHP. This library is a composer package, that is included in Caldera Forms 1.7 or later.
Accessing Caldera Forms Queries In Caldera Forms
Caldera Forms Queries has a static accessor function that is available when Caldera Forms is active. Do not attempt to use this function before the “caldera_forms_includes_complete” action.
Installing In Another Project
You can install this package in a PHP project using Composer:
composer require calderawp/caldera-forms-query
Usage
Please see the examples in the readme
Where Does This Code Go?
When using WordPress hooks to customize Caldera Forms or other plugins you should not modify the plugin files, or you will lose your changes when you update the plugin. Instead you should create a small plugin to hold the custom code. It's easy, learn how here.
Technically you can add the custom code to your theme's functions.php, but then you will not be able to change your theme and keep these customizations.