-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfluent-crm-field-updated-trigger.php
More file actions
47 lines (42 loc) · 1.55 KB
/
fluent-crm-field-updated-trigger.php
File metadata and controls
47 lines (42 loc) · 1.55 KB
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
<?php
/**
* Plugin Name: FluentCRM - Field Updated Trigger
* Description: Adds a FluentCRM trigger for when a custom field is updated.
* Plugin URI: https://github.com/verygoodplugins/fluent-crm-field-updated-trigger/
* Version: 1.1.0
* Author: Very Good Plugins
* Author URI: https://verygoodplugins.com/
*/
/**
* @copyright Copyright (c) 2023. All rights reserved.
*
* @license Released under the GPL license http://www.opensource.org/licenses/gpl-license.php
*
* **********************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* **********************************************************************
*/
// deny direct access.
if ( ! function_exists( 'add_action' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
/**
* Bootstrap the plugin.
*
* @since 1.0.0
*/
function fluentcrm_field_updated_trigger_boot() {
include_once __DIR__ . '/class-field-updated-trigger.php';
include_once __DIR__ . '/class-contact-updated-trigger.php';
}
add_action( 'fluentcrm_loaded', 'fluentcrm_field_updated_trigger_boot' );