1 | <?php |
||
24 | class WCSS { |
||
25 | |||
26 | /* Plugin version. */ |
||
27 | const VERSION = '1.0.0'; |
||
28 | |||
29 | /* Required WC version. */ |
||
30 | const REQ_WC_VERSION = '2.3.0'; |
||
31 | |||
32 | /* Text domain. */ |
||
33 | const TEXT_DOMAIN = 'woocommerce-subscription-shortcodes'; |
||
34 | |||
35 | /** |
||
36 | * @var WCSS - the single instance of the class. |
||
37 | * |
||
38 | * @since 1.0.0 |
||
39 | */ |
||
40 | protected static $_instance = null; |
||
41 | |||
42 | /** |
||
43 | * Main WCSS Instance. |
||
44 | * |
||
45 | * Ensures only one instance of WCSS is loaded or can be loaded. |
||
46 | * |
||
47 | * @static |
||
48 | * @see WCSS() |
||
49 | * @return WCSS - Main instance |
||
50 | * @since 1.0.0 |
||
51 | */ |
||
52 | public static function instance() { |
||
58 | |||
59 | /** |
||
60 | * Cloning is forbidden. |
||
61 | * |
||
62 | * @since 1.0.0 |
||
63 | */ |
||
64 | public function __clone() { |
||
67 | |||
68 | /** |
||
69 | * Unserializing instances of this class is forbidden. |
||
70 | * |
||
71 | * @since 1.0.0 |
||
72 | */ |
||
73 | public function __wakeup() { |
||
76 | |||
77 | /** |
||
78 | * Do some work. |
||
79 | */ |
||
80 | public function __construct() { |
||
85 | |||
86 | public function plugin_url() { |
||
89 | |||
90 | public function plugin_path() { |
||
93 | |||
94 | public function plugins_loaded() { |
||
111 | |||
112 | /** |
||
113 | * Display a warning message if Subs version check fails. |
||
114 | * |
||
115 | * @return void |
||
116 | */ |
||
117 | public function wc_admin_notice() { |
||
120 | |||
121 | /** |
||
122 | * Display a warning message if WC version check fails. |
||
123 | * |
||
124 | * @return void |
||
125 | */ |
||
126 | public function wcs_admin_notice() { |
||
129 | |||
130 | /** |
||
131 | * Load textdomain. |
||
132 | * |
||
133 | * @return void |
||
134 | */ |
||
135 | public function init_textdomain() { |
||
138 | |||
139 | /** |
||
140 | * Show row meta on the plugin screen. |
||
141 | * |
||
142 | * @param mixed $links Plugin Row Meta |
||
143 | * @param mixed $file Plugin Base file |
||
144 | * @return array |
||
145 | */ |
||
146 | public function plugin_meta_links( $links, $file, $data, $status ) { |
||
156 | |||
157 | } // END class |
||
158 | |||
162 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.