Search Results :

×

How to Configure WordPress and Salesforce Integration for Bi‑Directional Data Sync?


WordPress helps you build and manage your website, while Salesforce helps you track leads, customers, and sales data. Many businesses use both to collect information online and manage relationships in one place. Together, they make it easier to attract visitors, capture details, and turn them into customers.

The WordPress and Salesforce Integration connects both systems, so data flows smoothly between them. When set up, any new form submission, user update, or post created in WordPress can appear in Salesforce, and the same changes made in Salesforce can reflect back in WordPress.

Salesforce’s Web-to-Lead feature allows basic form submissions to create leads in the CRM, but it only supports one-way data transfer and cannot sync updates back to WordPress.

The miniOrange Object Data Sync for Salesforce plugin keeps both platforms in sync in real time. It allows you to map fields, sync users, leads, and custom objects, and move information between WordPress and Salesforce in both directions. This ensures your data stays accurate and consistent, giving your team a complete view of every customer interaction.

Before you set up the WordPress and Salesforce integration, make sure you have the following:

  • A WordPress administrator account.
  • A Salesforce administrator account.
  • The miniOrange Object Data Sync for Salesforce plugin is installed and activated.
  • SSL is enabled on your WordPress site, so the callback URL

Before the WordPress and Salesforce integration can sync data, the plugin must be connected to your Salesforce account. You can connect it quickly using the Automatic Pre-Connected App, or create a custom connection later if needed.


You can quickly connect WordPress to Salesforce using the Automatic (Pre-Connected App) option. This method doesn’t require any manual setup in Salesforce and securely authorizes the plugin to access your Salesforce account. Follow the steps below to complete the connection.

  • In WordPress, go to Object Data Sync for Salesforce → Settings. Under Salesforce Application Type, select Automatic (Pre-Connected App).
  • Choose your Salesforce environment (Production or Sandbox) and click Save Selected Environment. If you use a custom domain, select Custom and enter your Salesforce domain name.
WordPress and Salesforce Integration - Pre-Connected App

  • Click Connect to Salesforce. A Salesforce login window will appear. Sign in with a System Administrator account and grant the requested permissions.
WordPress and Salesforce Integration - Connect to Salesforce

  • When prompted, click Allow to authorize the plugin. After authorization, the plugin will show a confirmation screen. Click Next to continue.
Note and Contact Us - SSO between two WordPress sites

Note: You must log in with a Salesforce System Administrator account to grant the required permissions for this step.


WordPress and Salesforce Integration - Allow Access

  • After you click Allow, the connection between WordPress and Salesforce will be established successfully. A confirmation screen will appear showing that the connection is active.
  • Click Next to continue with the setup.
WordPress and Salesforce Integration - Successful

Refresh Token Policy for Automatic (Pre-Connected) App

  • By default, the miniOrange app uses a refresh token that does not expire. However, some Salesforce environments apply stricter security policies that may install the app with a temporary refresh token. When this happens, the token expires after a certain period, and you’ll need to click Re-authorize with Salesforce in the plugin to reconnect.
  • To prevent the refresh token from expiring, log in to your Salesforce account, click the Setup gear icon in the top-right corner, and update the refresh token settings as described in the next section.
WordPress and Salesforce Integration - Refresh Token Setup

  • Go to Apps >> Connected Apps >> Connected Apps OAuth Usage from the left-hand panel, then click Install.
WordPress and Salesforce Integration - Connected Apps OAuth Usage

  • Now, click Manage App Policies next to the miniOrange application, as shown below.
WordPress and Salesforce Integration - Manage App Policies

  • Click on Edit Policies.
WordPress and Salesforce Integration - Edit Policies

  • Under the OAuth Policies section, select Refresh token is valid until revoked from the Refresh Token Policy dropdown.
WordPress and Salesforce Integration - OAuth Policies

If your organization requires custom OAuth credentials or doesn’t allow the pre-connected app, you can create your own Connected App in Salesforce. This method gives you full control over OAuth settings and supports Salesforce to WordPress Integration for two-way data synchronization.

Follow these steps to create the Connected App:

  • Go to the Salesforce login page and sign in as an Administrator.
  • You will see the Salesforce home screen.
WordPress and Salesforce Integration - Home Screen

  • Click the Setup gear icon in the top-right corner.
WordPress and Salesforce Integration - Setup Tab


  • Under the PLATFORM TOOLS section in the left-hand menu, navigate to Apps and select App Manager.
WordPress and Salesforce Integration - App Manager

  • In the same window, go to the top-right corner and click Create External Client App (or New Connected App, depending on your Salesforce version).
WordPress and Salesforce Integration - New App

  • Enter the External Client App Name and Contact Email as shown below:
  • Check the Enable OAuth checkbox under API (Enable OAuth Settings).
WordPress and Salesforce Integration - OAuth Setting

Connected App Name Enter a unique name for the app. Use only letters, numbers, and underscores.
NOTE: The name must begin with a letter, cannot contain spaces, cannot end with an underscore, and cannot include two consecutive underscores.
API Name Enter a name of your choice. By default, it copies the Connected App Name.
NOTE: The same naming rules apply — only letters, numbers, and underscores are allowed, and it must start with a letter.
Callback URL Enter your WordPress Site URL.
NOTE: Enter your WordPress site URL in https:// format. This is required for secure communication between WordPress and Salesforce.
Contact Email Enter a valid contact email address for notifications or administrative purposes.
Available OAuth Scopes Select Manage user data via APIs (api) and Perform requests on your behalf at any time (refresh_token, offline_access) option.
  • For the WordPress site URL, open the plugin and go to the Manage Application tab. Copy the Redirect URI displayed there.
WordPress and Salesforce Integration - Salesforce manual callback url

  • Enter the Callback URL. You can copy the Redirect URI from the Manage Application tab in the plugin.
  • Select Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access) from the Available OAuth Scopes section.
WordPress and Salesforce Integration - Callback URL

  • Under the Security section, make sure to disable the Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows checkbox. Refer to the image below:
WordPress and Salesforce Integration - Require Proof Key

  • Click Save to create the app.
  • You can access the Consumer Key and Consumer Secret under Settings >> OAuth Settings by clicking Consumer Key and Secret.
WordPress and Salesforce Integration - Consumer Key and Secret

  • You may receive a 2FA prompt depending on your login policies. Enter the OTP or verification code if prompted. The Consumer Key and Consumer Secret are required to establish the connection between Salesforce and WordPress.
WordPress and Salesforce Integration - Consumerkey

Only for Manual Application Type

  • Navigate to the WP Object Salesforce Sync plugin in WordPress.
WordPress and Salesforce Integration - Consumerkey

  • Under the Manage Application tab, paste the Consumer Key and Consumer Secret from the Salesforce app.
Select Environment Select your Salesforce environment to determine the Salesforce URL. If you have a custom URL, select the last option.
Note: If you use a custom URL, make sure it ends with .salesforce.com.
Authorization URL If you selected the Custom URL option above, provide the Salesforce link here.
Application ID Paste the Consumer Key from the Salesforce app.
Client Secret Paste the Consumer Secret from the Salesforce app.
Redirect URI Enter the Callback URL from the Salesforce app.
Scopes Enter api refresh_token
  • Click Save Configuration.
  • Then, click Connect to Salesforce. You will be prompted to enter your Salesforce credentials. After signing in, you’ll be asked to grant permissions. Click Allow to complete the connection.
WordPress and Salesforce Integration- Manage App

  • Once authorized, the connection to Salesforce will be established successfully, and a confirmation screen will appear.
  • Click Next to continue.
Configure Salesforce - WordPress Object Sync plugin- Manageapp


Note and Contact Us - SSO between two WordPress sites

Note: If you want to sync records from Salesforce to WordPress, refer to the guide linked here.

  • In the Object Mapping tab, click Add Object Mapping to set up a new connection between a WordPress object and a Salesforce object.
Integrate Salesforce with WordPress - Object Mapping

  • In the first section, select the WordPress Object you want to connect, either User or Post. The fields from this WordPress object can then be linked to matching fields in the Salesforce object.
Note and Contact Us - SSO between two WordPress sites

Note: In the free version of the Object Data Sync for Salesforce plugin, data can only sync from Salesforce to WordPress for the User and Post objects.


Integrate Salesforce with WordPress - Object Mapping

  • In the second section, choose the Direction of Sync as Sync from WordPress to Salesforce.
Note and Contact Us - SSO between two WordPress sites

Note: You can also configure the WordPress and Salesforce integration to sync data from Salesforce to WordPress by following the guide here.


Integrate Salesforce with WordPress - Object Mapping

  • In the third section, select the Salesforce object to which you want to push the WordPress data.
Integrate Salesforce with WordPress - Object Mapping

  • In the fourth section, link the fields of the selected Salesforce object with the corresponding WordPress fields.
  • Click Add Salesforce Field to add a new mapping.
  • If a mapping is not required, click the delete button next to it to remove it.
Integrate Salesforce with WordPress - Object Mapping

  • Finally, click Save Object Mapping to save all your configured mappings.

Once you’ve completed the object mappings, you can start syncing your existing WordPress data with Salesforce. This section explains how to perform both on-demand and real-time sync as part of the WordPress and Salesforce Integration.


Push WordPress Users:

  • In your WordPress dashboard, click Users from the left-hand menu. From the list of users, select the ones you want to sync from WordPress to Salesforce.
WordPress to Salesforce Integration - meta box push to salesforce

  • Click the Bulk actions dropdown and select Sync Users to Salesforce. The selected users will be created or updated in the Salesforce object based on the saved field mappings.
WordPress to Salesforce Integration - meta box push to salesforce

Push WordPress Posts:

  • In your WordPress dashboard, click Posts from the left-hand menu.
  • From the list of posts, select the ones you want to sync from WordPress to Salesforce.
WordPress to Salesforce Integration - meta box push to salesforce

  • Click the Bulk actions dropdown and select Sync Posts to Salesforce. The selected posts will be created or updated in the Salesforce object according to the saved mappings.
WordPress to Salesforce Integration - meta box push to salesforce
  • Navigate to the Advanced Sync Options tab of the Object Data Sync for Salesforce plugin.
  • Under the Realtime Sync section, enable the Enable Real-Time Sync toggle.
  • Click the Save Configuration button.
  • The user will be created or updated in real time in the Salesforce object based on the saved mappings.
WordPress to Salesforce Integration - Real Time Sync To salesforce

Note and Contact Us - SSO between two WordPress sites

Note: Real time sync allows you to sync WordPress users/posts with Salesforce when they are created/updated in WordPress.


You have successfully configured WordPress (WP) Salesforce Object Sync.

After completing the configuration, run a test to confirm that data flows correctly:

  • Create a new user or post in WordPress, ensuring you fill in all mapped fields.
  • Check the corresponding Salesforce object to confirm that the record appears with the expected values.
  • If data doesn’t appear, review your field mappings, API credentials, and Salesforce scopes. Re‑authorise the connection if necessary.
Note and Contact Us - SSO between two WordPress sites

Note: Always test with sample data before activating the integration on a live site. Creating a separate Salesforce Sandbox for testing minimises the risk of corrupting production data.


Yes, absolutely. You can integrate Salesforce with WordPress using APIs or automation tools like Zapier. However, setting it up manually takes time and some technical skills. If you want something faster and easier, you can use the miniOrange Object Data Sync for Salesforce Integration plugin for your WordPress site to connect both platforms securely and sync data automatically.

Yes, you can import user data from Salesforce into WordPress by exporting it manually and uploading it through CSV files. However, this method requires frequent updates. If you’d rather keep data in sync automatically, our Object Data Sync for Salesforce Integration plugin handles updates between both platforms for you.

Yes, you can. You can connect your WordPress forms to Salesforce using form builders like WPForms or Gravity Forms. It takes a few manual steps to set up. If you’d like a smoother process, our plugin can link these forms directly to Salesforce and send data automatically when users submit them.

Yes, you can connect WooCommerce with Salesforce to sync orders, customers, and product data. You can build the connection manually, but our plugin includes a WooCommerce Salesforce Integration extension within the main Object Data Sync for Salesforce plugin. It helps you set up the integration faster and keeps your data updated automatically.



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!



ADFS_sso ×
Hello there!

Need Help? We are right here!

support