-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhook-flowchart.php
63 lines (55 loc) · 2.09 KB
/
hook-flowchart.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
<?php
/**
*
* @package Hook_Flowchart
* @author Mte90 <[email protected]>
* @license GPL-2.0+
* @link http://codeat.it
* @copyright 2016 GPL
*
* @wordpress-plugin
* Plugin Name: Hook Flowchart
* Plugin URI: https://wordpress.org/plugins/hook-flowchart/
* Description: In every WordPress page there are in action many hooks but what are the relations between them?
* Version: 1.0.0
* Author: Codeat
* Author URI: http://codeat.it
* Text Domain: hook-flowchart
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* WordPress-Plugin-Boilerplate-Powered: v1.1.6
*/
// If this file is called directly, abort.
if ( !defined( 'WPINC' ) ) {
die;
}
define( 'HF_VERSION', '2.0.0' );
define( 'HF_TEXTDOMAIN', 'hook-flowchart' );
define( 'HF_NAME', 'Hook Flowchart' );
define( 'HF_PLUGIN_ROOT', plugin_dir_path( __FILE__ ) );
define( 'HF_PLUGIN_ABSOLUTE', __FILE__ );
/*
* ------------------------------------------------------------------------------
* Public-Facing Functionality
* ------------------------------------------------------------------------------
*/
require_once( plugin_dir_path( __FILE__ ) . 'includes/load_textdomain.php' );
/*
* Load library for simple and fast creation of Taxonomy
*/
require_once( plugin_dir_path( __FILE__ ) . 'public/class-hook-flowchart.php' );
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*/
register_activation_hook( __FILE__, array( 'Hook_Flowchart', 'activate' ) );
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*/
add_action( 'plugins_loaded', array( 'Hook_Flowchart', 'get_instance' ), 9999 );
if ( is_admin() && (!defined( 'DOING_AJAX' ) || !DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-hook-flowchart-admin.php' );
add_action( 'plugins_loaded', array( 'Hook_Flowchart_Admin', 'get_instance' ) );
}