forked from MinnPost/object-sync-for-salesforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject-sync-for-salesforce.php
executable file
·67 lines (58 loc) · 1.47 KB
/
object-sync-for-salesforce.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* Plugin Name: Object Sync for Salesforce
* Description: Object Sync for Salesforce maps and syncs data between Salesforce objects and WordPress objects.
* Version: 2.2.7
* Author: MinnPost
* Author URI: https://code.minnpost.com
* License: GPL2+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: object-sync-for-salesforce
*
* @package Object_Sync_Salesforce
*/
/* Exit if accessed directly */
if ( ! defined( 'ABSPATH' ) ) {
return;
}
/**
* The full path to the main file of this plugin
*
* This can later be passed to functions such as
* plugin_dir_path(), plugins_url() and plugin_basename()
* to retrieve information about plugin paths
*
* @since 2.0.0
* @var string
*/
define( 'OBJECT_SYNC_SF_FILE', __FILE__ );
/**
* The plugin's current version
*
* @since 2.0.0
* @var string
*/
define( 'OBJECT_SYNC_SF_VERSION', '2.2.7' );
/**
* The default Salesforce API version, unless it has been overridden by pre-existing option or by developers
*
* @since 2.0.0
* @var string
*/
define( 'OBJECT_SYNC_SF_DEFAULT_API_VERSION', '55.0' );
// Load the autoloader.
require_once 'lib/autoloader.php';
/**
* Retrieve the instance of the main plugin class
*
* @since 2.0.0
* @return Object_Sync_Salesforce
*/
function object_sync_for_salesforce() {
static $plugin;
if ( is_null( $plugin ) ) {
$plugin = new Object_Sync_Salesforce( OBJECT_SYNC_SF_VERSION, OBJECT_SYNC_SF_FILE );
}
return $plugin;
}
object_sync_for_salesforce()->init();