Using Gravity Forms ‘gform_zoho_accounts_api_url’ PHP filter

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', 10, 1 );

Parameters

  • $accounts_api_url (string): Zoho CRM accounts API URL.

More information

See Gravity Forms Docs: gform_zoho_accounts_api_url

Examples

Change Zoho CRM accounts API URL to European URL

This example changes the Zoho CRM accounts API URL to the European version (crm.zoho.eu).

add_filter( 'gform_zoho_accounts_api_url', 'change_zoho_accounts_api_url', 10, 1 );

function change_zoho_accounts_api_url( $accounts_api_url ){
    return "https://accounts.zoho.eu";
}

Place this code in the functions.php file of your active theme. This filter was added in Zoho CRM version 1.2.5. The filter is located in GFZohoCRM::get_accounts_api_url() in gravityformszohocrm/class-gf-zohocrm.php.