PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / 1.0
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel v1.0
1.7.1 1.7.0 1.6.0 1.5.2 trunk 0.1 0.2.0 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.4 0.4.1 0.4.2 0.4.3 1.0 1.1 1.2 1.3.1 1.4.0 1.4.1 1.5.0 1.5.1 All 26 releases
← All changes | flywp.php +21 -2 0.3.11.0 View file →
@@ -2,9 +2,9 @@
2 2 /**
3 3 * Plugin Name: FlyWP
4 4 * Plugin URI: https://flywp.com
5 5 * Description: Helper plugin for FlyWP
6 - * Version: 0.3.1
6 + * Version: 1.0
7 7 * Author: FlyWP
8 8 * Author URI: https://flywp.com/?utm_source=wporg&utm_medium=banner&utm_campaign=author-uri
9 9 * License: GPL2
10 10 */
@@ -40,9 +40,9 @@
40 40 * Plugin version.
41 41 *
42 42 * @var string
43 43 */
44 - public $version = '0.3.1';
44 + public $version = '1.0';
45 45
46 46 /**
47 47 * Plugin Constructor.
48 48 *
@@ -106,8 +106,9 @@
106 106 $this->rest = new FlyWP\Api();
107 107 $this->fastcgi = new FlyWP\Fastcgi_Cache();
108 108 $this->opcache = new FlyWP\Opcache();
109 109 $this->flyapi = new FlyWP\FlyApi();
110 + $this->email = new FlyWP\Email();
110 111 }
111 112
112 113 /**
113 114 * Show admin notice if API key is not set.
@@ -135,8 +136,26 @@
135 136 * @return string
136 137 */
137 138 public function get_key() {
138 139 return FLYWP_API_KEY;
140 + }
141 +
142 + /**
143 + * Debugging helper.
144 + *
145 + * @param mixed $value
146 + * @param bool $die
147 + *
148 + * @return void
149 + */
150 + public function debug( $value, $die = false ) {
151 + echo '<pre>';
152 + print_r( $value );
153 + echo '</pre>';
154 +
155 + if ( $die ) {
156 + die();
157 + }
139 158 }
140 159 }
141 160
142 161 /**