forked from litespeedtech/lscache_wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentry.inc.php
50 lines (46 loc) · 1.3 KB
/
entry.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* The registry for Third Party Plugins Integration files.
*
* This file is only used to include the integration files/classes.
* This works as an entry point for the initial add_action for the
* detect function.
*
* It is not required to add all integration files here, this just provides
* a common place for plugin authors to append their file to.
*
*/
defined( 'WPINC' ) || exit;
use \LiteSpeed\API;
$third_cls = array(
'Aelia_CurrencySwitcher',
'Autoptimize',
'Avada',
'BBPress',
'Beaver_Builder',
'Caldera_Forms',
'Divi_Theme_Builder',
'Elementor',
'Facetwp',
'Theme_My_Login',
'User_Switching',
'WCML',
'WooCommerce',
'Woo_Paypal',
'Wp_Polls',
'WP_PostRatings',
'Wpdiscuz',
'WPLister',
'WPML',
'WpTouch',
'Yith_Wishlist',
);
foreach ( $third_cls as $cls ) {
add_action( 'litespeed_load_thirdparty', 'LiteSpeed\Thirdparty\\' . $cls . '::detect' ) ;
}
// Preload needed for certain thirdparty
add_action( 'litespeed_init', 'LiteSpeed\Thirdparty\Divi_Theme_Builder::preload' );
add_action( 'litespeed_init', 'LiteSpeed\Thirdparty\WooCommerce::preload' );
add_action( 'litespeed_init', 'LiteSpeed\Thirdparty\NextGenGallery::preload' );
add_action( 'litespeed_init', 'LiteSpeed\Thirdparty\AMP::preload' );
add_action( 'litespeed_init', 'LiteSpeed\Thirdparty\Elementor::preload' );