Deprecation Warning
This filter is not applicable for Zoho Add-On version 1.6 or later.
Current versions of the add-on will send you to a Zoho CRM page where you can login and connect the add-on to your account. Zoho then automatically handles informing the add-on as to which data center your account will use for future API requests.
Description
The “gform_zoho_accounts_api_url” filter allows the Zoho CRM accounts API URL to be changed. This is useful because, in addition to crm.zoho.com, Zoho CRM has a European solution that points to crm.zoho.eu.
Usage
add_filter( 'gform_zoho_accounts_api_url', 'your_function_name' );
Parameters
- $accounts_api_url string
Zoho CRM accounts API URL.
Examples
add_filter( 'gform_zoho_accounts_api_url', 'change_zoho_accounts_api_url' );
function change_zoho_accounts_api_url( $accounts_api_url ) {
return "https://accounts.zoho.eu";
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Zoho CRM version 1.2.5.
Source Code
This filter is located in GFZohoCRM::get_accounts_api_url() in gravityformszohocrm/class-gf-zohocrm.php.