-
Notifications
You must be signed in to change notification settings - Fork 0
/
one-icon-for-wp.php
72 lines (58 loc) · 1.41 KB
/
one-icon-for-wp.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
64
65
66
67
68
69
70
71
72
<?php
/**
* Plugin Name: One Icon for WP
* Description: A plugin for icons all over WordPress and WooCommerce
* Version: 1.2.1
* Author: Cross Media Cloud
* Author URI: https://www.cross-media-cloud.de
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: one-icon-for-wp
* Domain Path: /languages/
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Load plugin text domain.
*
* @since 1.0.0
*/
function one_icon_for_wp_load_text_domain() {
load_plugin_textdomain( 'one-icon-for-wp', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'one_icon_for_wp_load_text_domain' );
/**
* Function to run after plugin activation.
*
* @since 1.0.0
*/
function one_icon_for_wp_activate() {
// Activation code here...
}
register_activation_hook( __FILE__, 'one_icon_for_wp_activate' );
/**
* Function to run after plugin deactivation.
*
* @since 1.0.0
*/
function one_icon_for_wp_deactivate() {
// Activation code here...
}
register_deactivation_hook( __FILE__, 'one_icon_for_wp_deactivate' );
/*
* Load helpers
*/
require_once 'includes/icons.php';
require_once 'includes/public-helper.php';
/*
* Load features
*/
// Blocks
require_once 'blocks/blocks.php';
// Shortcodes
require_once 'includes/shortcodes.php';
if ( ! is_admin() ) {
return;
}
require_once 'admin/class-term-icon.php';