debug-bar
5 years ago
3rd-party.php
5 years ago
bbpress.php
5 years ago
beaverbuilder.php
5 years ago
bitly.php
5 years ago
buddypress.php
5 years ago
class-domain-mapping.php
5 years ago
class-jetpack-bbpress-rest-api.php
5 years ago
class-jetpack-crm-data.php
5 years ago
class-jetpack-modules-overrides.php
5 years ago
class.jetpack-amp-support.php
5 years ago
creative-mail.php
5 years ago
crowdsignal.php
5 years ago
debug-bar.php
5 years ago
qtranslate-x.php
5 years ago
vaultpress.php
5 years ago
web-stories.php
5 years ago
woocommerce-services.php
5 years ago
woocommerce.php
5 years ago
wpml.php
5 years ago
3rd-party.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Compatibility files for third-party plugins. |
| 4 | * This is used to improve compatibility of specific Jetpack features with third-party plugins. |
| 5 | * |
| 6 | * @package automattic/jetpack |
| 7 | */ |
| 8 | |
| 9 | namespace Automattic\Jetpack; |
| 10 | |
| 11 | /** |
| 12 | * Loads the individual 3rd-party compat files. |
| 13 | */ |
| 14 | function load_3rd_party() { |
| 15 | // Array of third-party compat files to always require. |
| 16 | $compat_files = array( |
| 17 | 'bbpress.php', |
| 18 | 'beaverbuilder.php', |
| 19 | 'bitly.php', |
| 20 | 'buddypress.php', |
| 21 | 'class.jetpack-amp-support.php', |
| 22 | 'class-jetpack-crm-data.php', |
| 23 | 'class-jetpack-modules-overrides.php', // Special case. Tools to be used to override module settings. |
| 24 | 'creative-mail.php', |
| 25 | 'debug-bar.php', |
| 26 | 'class-domain-mapping.php', |
| 27 | 'crowdsignal.php', |
| 28 | 'qtranslate-x.php', |
| 29 | 'vaultpress.php', |
| 30 | 'web-stories.php', |
| 31 | 'wpml.php', |
| 32 | 'woocommerce.php', |
| 33 | 'woocommerce-services.php', |
| 34 | ); |
| 35 | |
| 36 | foreach ( $compat_files as $file ) { |
| 37 | if ( file_exists( JETPACK__PLUGIN_DIR . '/3rd-party/' . $file ) ) { |
| 38 | require_once JETPACK__PLUGIN_DIR . '/3rd-party/' . $file; |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | load_3rd_party(); |
| 44 |