-
Notifications
You must be signed in to change notification settings - Fork 4
/
piklist-helper.php
44 lines (38 loc) · 1.22 KB
/
piklist-helper.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
<?php
/*
* Plugin Name: Piklist Helper
* Plugin URI: https://github.com/JasonTheAdams/PiklistHelper
* Plugin Type: Piklist
* Description: A helper for adding additional filters, validations, and functionality to Piklist
* Version: 0.6.0
* Author: Jason Adams
* Author URI: https://github.com/JasonTheAdams/
* License: MIT
*/
add_action('init', function() {
// Check for Piklist
if(is_admin()) {
include_once('lib/class-piklist-checker.php');
if (!piklist_checker::check(__FILE__)) return;
}
});
// Functions to be called directly
if ( !class_exists('PiklistHelper') ) {
require_once('includes/class-piklist-helper.php');
}
// Addtional and improved validations
if ( !class_exists('PiklistHelperValidations') ) {
require_once('includes/class-piklist-helper-validations.php');
PiklistHelperValidations::_construct();
}
// Addtional and improved sanitizations
if ( !class_exists('PiklistHelperSanitizations') ) {
require_once('includes/class-piklist-helper-sanitizations.php');
PiklistHelperSanitizations::_construct();
}
// Modifications to Piklist to make life easier
if ( !class_exists('PiklistHelperMods') ) {
require_once('includes/class-piklist-helper-mods.php');
PiklistHelperMods::_construct();
}
?>