PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 12.9.3
Jetpack – WP Security, Backup, Speed, & Growth v12.9.3
12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 All 500 releases
jetpack / class.jetpack-boost-modules.php
class.jetpack-boost-modules.php
56 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2
3 /**
4 * Jetpack Boost Active Modules
5 *
6 * Since the speed scores API will only be used in the Jetpack plugin if Jetpack Boost is uninstalled
7 * all we need is to pass along this placeholder class for the modules that essentially tells the API
8 * the user doesn't have any Boost modules active.
9 *
10 * @package automattic/jetpack
11 */
12
13 /**
14 * Jetpack Boost Modules
15 */
16 class Jetpack_Boost_Modules {
17
18 /**
19 * Holds the singleton instance of the class
20 *
21 * @var Jetpack_Boost_Modules
22 */
23 private static $instance = false;
24
25 /**
26 * Singleton
27 *
28 * @static
29 * @return Jetpack_Boost_Modules
30 */
31 public static function init() {
32 if ( ! self::$instance ) {
33 self::$instance = new Jetpack_Boost_Modules();
34 }
35
36 return self::$instance;
37 }
38 /**
39 * Returns status of all active boost modules
40 *
41 * @return array - An empty array. The user will never have active modules when using the Boost Score API
42 */
43 public function get_status() {
44 return array();
45 }
46
47 /**
48 * Returns whether or not the user has active modules
49 *
50 * @return false - The user will never have active modules when using the Boost Score API
51 */
52 public function have_enabled_modules() {
53 return false;
54 }
55 }
56