Created
May 17, 2018 15:43
-
-
Save CapWebSolutions/5cefe4b0d818ed07b4e1e08108dc801f to your computer and use it in GitHub Desktop.
Fix issue with Gravity Forms Salesforce Web To Lead plugin from Katz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hotfix_gforms_web_to_lead( $subdomain, $test ) { | |
| // We will disregard the original subdomain value, which is legacy "www". | |
| return ( $test ) ? 'test' : 'webto'; | |
| } | |
| add_filter( 'gf_salesforce_request_subdomain', 'hotfix_gforms_web_to_lead', 10, 2 ); | |
| // ref: https://wordpress.org/support/topic/plugin-does-not-to-salesforce-web-to-lead-url-heres-how-to-fix-it/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment