MinnPost / object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
https://wordpress.org/plugins/object-sync-for-salesforce/
GNU General Public License v2.0
93 stars 49 forks source link

Remove the requirement to set the Salesforce REST API version from the interface in favor of a plugin-wide setting. #464

Closed jonathanstegall closed 2 years ago

jonathanstegall commented 2 years ago

What does this Pull Request do?

This fixes #458 by removing the requirement to set the Salesforce REST API version from the interface in favor of a plugin-wide setting. This setting allows us to track Salesforce API releases within the plugin itself rather than putting that responsibility onto users.

For backward-compatibility, for the time being the plugin will use previously-provided settings (both as config values and as wp_options values) and show a notice to users if they are using one of those settings.

For future developer flexibility, this also adds a developer hook in case developers want to set their own version of the API.

How do I test this Pull Request?