WordPress-to-lead for Salesforce CRM
[resolved] WordPress Plugin with Custom Domain (5 posts)

  1. cloudify
    Posted 2 years ago #

    We have a custom domain set for our users to login to "myorg.my.salesforce.com".
    When we tried to install the plugin we received an error "Failed to connect to Salesforce.com".

    Is there a way to modify the plugin to use our custom domain vs. login.salesforce.com?


  2. Nick Ciske
    Plugin Author

    Posted 2 years ago #

    The plugin doesn’t use login.salesforce.com. It's only interaction with SF is via the web to lead API endpoint:

    That should work with any SF account with the organization ID set correctly.

  3. Stony Grunow
    Plugin Author

    Posted 2 years ago #

    You can test if this is an issue by creating a standard web to lead, and check what the URL is in the form. To create a web to lead, follow


    And then take a look at the line that starts <form..

    does it look like

    <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

    or does it look like

    <form action="https://myorg.my.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

    If the first, then the fact you are using a custom domain shouldn't make a difference.

  4. Nick Ciske
    Plugin Author

    Posted 2 years ago #

    FYI - I'll add a filter to allow you to override the API endpoint the plugin uses, in case it's the latter URL. I'm curious to know either way though!

  5. Nick Ciske
    Plugin Author

    Posted 2 years ago #

    OK, 2.1 (releasing this week) supports the following filter:

    Change the API url the plugin posts data to.


    add_filter( 'salesforce_w2l_api_url', 'my_w2l_api_url' );
    function my_w2l_api_url( $url ){
    	return 'https://my.custom-api-url.com/something/';

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress-to-lead for Salesforce CRM
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic