-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtoolset.php
More file actions
49 lines (38 loc) · 1.29 KB
/
toolset.php
File metadata and controls
49 lines (38 loc) · 1.29 KB
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
<?php
/*
@package wordpress-toolset
@author Johann Heyne mail@johannheyne
@license GPL-2.0+
@link https://github.com/johannheyne/wordpress-toolset
@copyright 2014-2017 Johann Heyne
@wordpress-plugin
Plugin Name: WordPress ToolSet
Plugin URI: https://github.com/johannheyne/wordpress-toolset
Description: On place for reusable functionalities and assets.
Version: 0.0.189
Author: Johann Heyne
Author URI: www.johannheyne.de
Text Domain: toolset
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
GitHub Plugin URI: https://github.com/johannheyne/wordpress-toolset
GitHub Branch: master
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// UPDATER {
// Source: http://code.tutsplus.com/tutorials/distributing-your-plugins-in-github-with-automatic-updates--wp-34817
if ( is_admin() ) {
require_once( 'BFIGitHubPluginUploader.php' );
new BFIGitHubPluginUpdater( __FILE__, 'johannheyne', "wordpress-toolset", array(
'tested' => '5.6.2',
'requires' => '5.6.0',
) );
}
// }
add_action( 'plugins_loaded', function() {
// action 'plugins_loaded' enables access to $current_user data
require_once( plugin_dir_path( __FILE__ ) . 'functions.php' );
} );