Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save CapWebSolutions/5cefe4b0d818ed07b4e1e08108dc801f to your computer and use it in GitHub Desktop.

Select an option

Save CapWebSolutions/5cefe4b0d818ed07b4e1e08108dc801f to your computer and use it in GitHub Desktop.
Fix issue with Gravity Forms Salesforce Web To Lead plugin from Katz
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