-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbearer.php
71 lines (61 loc) · 1.8 KB
/
bearer.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
<?php
/**
* Bearer
*
* @package Bearer
* @author Bearer
* @copyright 2021 WPDevICU
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Bearer
* Plugin URI: https://wpdev.icu/bearer/
* Description: Description of the plugin.
* Version: 0.0.1
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: WPDevICU
* Author URI: https://wpdev.icu
* Text Domain: bearer
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Update URI: https://wordpress.org/plugins/bearer/
*/
/*
Bearer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.
Bearer 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 Bearer. If not, see http://www.gnu.org/licenses/gpl-2.0.txt
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
if ( ! defined( 'BEARER_PLUGIN_FILE' ) ) {
define( 'BEARER_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'BEARER_PLUGIN_DIR' ) ) {
define( 'BEARER_PLUGIN_DIR', __DIR__ );
}
if ( ! file_exists( BEARER_PLUGIN_DIR . '/vendor/autoload.php' ) ) {
return;
}
require_once BEARER_PLUGIN_DIR . '/vendor/autoload.php';
if ( ! function_exists( 'bearer' ) ) {
/**
* Helper class for Bearer.
*
* @since 1.0.0
*
* @return \WPDevICU\Bearer\Bearer
*/
function bearer(): \WPDevICU\Bearer\Bearer {
return \WPDevICU\Bearer\Bearer::init();
}
}
bearer();