-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathninjaforms-salesforce.php
34 lines (29 loc) · 991 Bytes
/
ninjaforms-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
<?php
/**
* Plugin Name: Ninja Forms - Salesforce
* Plugin URI: https://github.com/nicko170/ninjaforms-salesforce
* Description: This is a really dodgy integration between Ninja Forms and Salesforce. I might get to documentation at some stage, basically, create a new form with fields that have labels of First Name, Last Name and Email, then set a custom hook action of "ninja_forms_salesforce_action"
* Version: 0.0.1
* Author: Nick Pratley
* Author URI: https://github.com/nicko170.
*
* Copyright 2021 Nick Pratley.
**/
// If this file is called directly, abort.
if (!defined('WPINC')) {
exit;
}
require __DIR__.'/autoload.php';
use NinjaformsSalesforce\NinjaformsSalesforce;
$nfpardot = new NinjaformsSalesforce();
$nfpardot->setInstance($nfpardot);
$nfpardot->init();
if (!function_exists('nfpardot')) {
/**
* @return NinjaformsSalesforce
*/
function nfpardot(): NinjaformsSalesforce
{
return NinjaformsSalesforce::getInstance();
}
}