Sin descripción

3rd-party.php 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. namespace Automattic\Jetpack;
  9. /**
  10. * Loads the individual 3rd-party compat files.
  11. */
  12. function load_3rd_party() {
  13. // Array of third-party compat files to always require.
  14. $compat_files = array(
  15. 'bbpress.php',
  16. 'beaverbuilder.php',
  17. 'bitly.php',
  18. 'buddypress.php',
  19. 'class.jetpack-amp-support.php',
  20. 'class-jetpack-crm-data.php',
  21. 'class-jetpack-modules-overrides.php', // Special case. Tools to be used to override module settings.
  22. 'creative-mail.php',
  23. 'debug-bar.php',
  24. 'class-domain-mapping.php',
  25. 'crowdsignal.php',
  26. 'qtranslate-x.php',
  27. 'vaultpress.php',
  28. 'web-stories.php',
  29. 'wpml.php',
  30. 'woocommerce.php',
  31. 'woocommerce-services.php',
  32. );
  33. foreach ( $compat_files as $file ) {
  34. if ( file_exists( JETPACK__PLUGIN_DIR . '/3rd-party/' . $file ) ) {
  35. require_once JETPACK__PLUGIN_DIR . '/3rd-party/' . $file;
  36. }
  37. }
  38. }
  39. load_3rd_party();