kollapsminoriteten/wp-content/plugins/jetpack/3rd-party/3rd-party.php

44 lines
1.0 KiB
PHP
Raw Normal View History

2019-11-15 23:26:29 +01:00
<?php
/**
* Compatibility files for third-party plugins.
* This is used to improve compatibility of specific Jetpack features with third-party plugins.
*
* @package Jetpack
*/
2020-01-26 12:53:20 +01:00
namespace Automattic\Jetpack;
2019-11-15 23:26:29 +01:00
2020-01-26 12:53:20 +01:00
/**
* Loads the individual 3rd-party compat files.
*/
function load_3rd_party() {
// Array of third-party compat files to always require.
$compat_files = array(
'bbpress.php',
'beaverbuilder.php',
'bitly.php',
'buddypress.php',
'class.jetpack-amp-support.php',
2020-10-20 18:05:12 +02:00
'class-jetpack-crm-data.php',
2020-01-26 12:53:20 +01:00
'class.jetpack-modules-overrides.php', // Special case. Tools to be used to override module settings.
2020-09-15 14:30:05 +02:00
'creative-mail.php',
2020-01-26 12:53:20 +01:00
'debug-bar.php',
'domain-mapping.php',
'polldaddy.php',
'qtranslate-x.php',
'vaultpress.php',
2020-12-10 14:04:11 +01:00
'web-stories.php',
2020-01-26 12:53:20 +01:00
'wpml.php',
'woocommerce.php',
'woocommerce-services.php',
);
foreach ( $compat_files as $file ) {
if ( file_exists( JETPACK__PLUGIN_DIR . '/3rd-party/' . $file ) ) {
require_once JETPACK__PLUGIN_DIR . '/3rd-party/' . $file;
}
2019-11-15 23:26:29 +01:00
}
}
2020-01-26 12:53:20 +01:00
load_3rd_party();