-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaudienti.php
More file actions
32 lines (27 loc) · 800 Bytes
/
Copy pathaudienti.php
File metadata and controls
32 lines (27 loc) · 800 Bytes
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
<?php
/*
Plugin Name: Audienti Webhooks
Plugin URI:
Description: Easily create web hooks and entries within the WordPress admin.
Author: Audienti
Version: 1.0.1
Author URI:
*/
register_activation_hook(__FILE__, 'audienti_activate');
register_deactivation_hook(__FILE__, 'audienti_deactivate');
require_once dirname(__FILE__).'/app/functions/functions.php';
function audienti_activate() {
global $wp_rewrite;
require_once dirname(__FILE__).'/audienti_loader.php';
$loader = new AudientiLoader();
$loader->activate();
$wp_rewrite->flush_rules( true );
}
function audienti_deactivate() {
global $wp_rewrite;
require_once dirname(__FILE__).'/audienti_loader.php';
$loader = new AudientiLoader();
$loader->deactivate();
$wp_rewrite->flush_rules( true );
}
?>