PluginProbe ʕ •ᴥ•ʔ
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager / 1.3.7
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager v1.3.7
3.1.9 3.1.8 3.1.7 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 trunk 1.3.7 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9 2.9.1 2.9.2
folders / includes / GMMediaTags.class.php
folders / includes Last commit date
GMMediaTags.class.php 11 years ago GMMediaTags.js 10 years ago GMMediaTagsAdmin.class.php 10 years ago options.php 9 years ago types.php 8 years ago
GMMediaTags.class.php
98 lines
1 <?php
2 /**
3 * GMMediaTags class
4 *
5 * @package GMMediaTags
6 * @author Giuseppe Mazzapica
7 *
8 */
9 class GMMediaTags {
10
11
12 /**
13 * Class version
14 *
15 * @since 0.1.0
16 *
17 * @access protected
18 *
19 * @var string
20 */
21 protected static $version = '0.1.1';
22
23
24
25
26 /**
27 * Prevent register method from run more than one time.
28 *
29 * @since 0.1.0
30 *
31 * @access protected
32 *
33 * @var bool
34 */
35 protected static $done = false;
36
37
38
39
40 /**
41 * Constructor. Doing nothing
42 *
43 * @since 0.1.0
44 *
45 * @access public
46 * @return null
47 *
48 */
49 function __construct() {
50 _doing_it_wrong( 'GMMediaTags::__construct', 'GMMediaTags Class is intented to be used statically.' );
51 }
52
53
54
55
56 /**
57 * Initialize the plugin. Run on 'after_setup_theme' hook
58 *
59 * @since 0.1.0
60 *
61 * @access public
62 * @return null
63 *
64 */
65 static function init() {
66
67 if ( ! defined('GMMEDIATAGSPATH') ) die();
68
69 add_action('init', array(__CLASS__, 'register'), 999 );
70 add_action('admin_init', array(__CLASS__, 'admin_init') );
71
72 }
73
74
75 static function register() {
76
77 self::$done = true;
78
79 }
80
81
82
83
84 /**
85 * Add the action for backend. Run on 'admin_init' hook
86 *
87 * @since 0.1.0
88 *
89 * @access public
90 * @return null
91 *
92 */
93 static function admin_init() {
94 require( GMMEDIATAGSPATH . 'includes/GMMediaTagsAdmin.class.php');
95 GMMediaTagsAdmin::init();
96 }
97
98 }