X7ROOT File Manager
Current Path:
/home/okeydcqc/pointecgroup.com/wp-content/plugins/jetpack-boost/app/lib
home
/
okeydcqc
/
pointecgroup.com
/
wp-content
/
plugins
/
jetpack-boost
/
app
/
lib
/
ðŸ“
..
📄
.htaccess
(127 B)
📄
class-analytics.php
(1.74 KB)
📄
class-assets.php
(1.46 KB)
📄
class-boost-health.php
(2.73 KB)
📄
class-cache-compatibility.php
(1.18 KB)
📄
class-cli.php
(6.07 KB)
📄
class-collection.php
(1.28 KB)
📄
class-connection.php
(7.4 KB)
📄
class-debug.php
(724 B)
📄
class-environment-change-detector.php
(3.97 KB)
📄
class-minify.php
(960 B)
📄
class-my-jetpack.php
(384 B)
📄
class-nonce.php
(1.13 KB)
📄
class-output-filter.php
(4.1 KB)
📄
class-premium-features.php
(2.05 KB)
📄
class-premium-pricing.php
(1.11 KB)
📄
class-setup.php
(1.31 KB)
📄
class-site-health.php
(2.72 KB)
📄
class-site-urls.php
(3.55 KB)
📄
class-status.php
(2.75 KB)
📄
class-storage-post-type.php
(6.64 KB)
📄
class-super-cache-config-compatibility.php
(3.57 KB)
📄
class-super-cache-tracking.php
(365 B)
ðŸ“
cornerstone
ðŸ“
critical-css
ðŸ“
minify
Editing: class-setup.php
<?php namespace Automattic\Jetpack_Boost\Lib; use Automattic\Jetpack_Boost\Contracts\Has_Setup; class Setup { protected static $instances = array(); /** * This method takes a `Has_Setup` instance and registers the setup action. * In addition, it will keep track of all the instances passed to it, * * This is useful if a plugin needs the instance * to modify the behavior at a certain hook that * Jetpack Boost is using. * * The use case would be something like this: * ``` * $instance = my_get_instance_method( Setup::get_instances() ); * remove_action( 'wp_footer', array( $instance, 'foobar' ) ); * ``` * * @param Has_Setup $instance * * @return void */ public static function add( Has_Setup $instance ) { $instance->setup(); self::$instances[] = $instance; } public static function get_instances() { return self::$instances; } /** * @template T * @param class-string<T> $class_name * @return T|null */ public static function get_instance_of( $class_name ) { foreach ( self::get_instances() as $instance ) { if ( $instance instanceof $class_name ) { // @phan-suppress-next-line PhanTypeMismatchReturn -- Phan isn't inferring the type correctly from the `instanceof $class_name` like it's supposed to. return $instance; } } return null; } }
Upload File
Create Folder