-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathomnibus.php
68 lines (55 loc) · 1.73 KB
/
omnibus.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
<?php
/*
Plugin Name: PLUGIN_TITLE
Text Domain: omnibus
Plugin URI: PLUGIN_URI
Description: PLUGIN_DESCRIPTION
Version: PLUGIN_VERSION
Author: Marcin Pietrzak
Author URI: http://iworks.pl/
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Copyright 2022-PLUGIN_TILL_YEAR Marcin Pietrzak ([email protected])
this program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
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.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
$includes = dirname( __FILE__ ) . '/includes';
/**
* require: Iworksomnibus Class
*/
if ( ! class_exists( 'iworks_omnibus' ) ) {
require_once $includes . '/iworks/class-iworks-omnibus.php';
}
/**
* i18n
*/
load_plugin_textdomain( 'omnibus', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
new iworks_omnibus();
/**
* install & uninstall
*/
// register_activation_hook( __FILE__, 'iworks_omnibus_activate' );
// register_deactivation_hook( __FILE__, 'iworks_omnibus_deactivate' );
/**
* iWorks Rate
*
* @since 1.0.2
*/
add_action(
'init',
function() {
include_once dirname( __FILE__ ) . '/includes/iworks/rate/rate.php';
do_action( 'iworks-register-plugin', plugin_basename( __FILE__ ), __( 'Omnibus', 'omnibus' ), 'omnibus' );
}
);