Hook/Filter for $conn/api object
-
First, thanks for sharing your plugin. The code is very well organized and uses great coding standards. Unfortunately I have had to hack your plugin, in order to get it to work for us. Why? You have absolutely no hooks or filters! I would like to “not hack” your plugin so that I can use any updates you make so I offer you the following suggestion, at minimum:
In salesforce-api.php around line 665 add the following BEFORE updating the self::api:
$conn = apply_filters('gfsf_modify_connection', $conn);
Why? The SOAP calls default the AssignmentRuleHeader to “false”, so none of our leads are getting assigned properly. Here is the code in our “custom functions.php file” that in conjuction with this filter allows our leads to follow there proper lead assignment:
add_filter('gfsf_modify_connection', 'enable_assignment_rules'); function enable_assignment_rules($conn){ $header = new AssignmentRuleHeader(NULL, true); $conn->setAssignmentRuleHeader($header); return $conn; }
https://www.ads-software.com/extend/plugins/gravity-forms-salesforce/
- The topic ‘Hook/Filter for $conn/api object’ is closed to new replies.