jwplayer.php 584 B

123456789101112131415161718
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. /**
  6. * @since 4.4 vendors initialization moved to hooks in autoload/vendors.
  7. *
  8. * Used to initialize plugin jwplayer vendor for frontend editor.
  9. */
  10. add_action( 'plugins_loaded', 'vc_init_vendor_jwplayer' );
  11. function vc_init_vendor_jwplayer() {
  12. if ( is_plugin_active( 'jw-player-plugin-for-wordpress/jwplayermodule.php' ) || defined( 'JWP6' ) || class_exists( 'JWP6_Plugin' ) ) {
  13. require_once vc_path_dir( 'VENDORS_DIR', 'plugins/class-vc-vendor-jwplayer.php' );
  14. $vendor = new Vc_Vendor_Jwplayer();
  15. $vendor->load();
  16. }
  17. }