%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/www/stlc/wp-content/plugins/shortpixel-image-optimiser/class/external/
Upload File :
Create Path :
Current File : /home/opti/www/stlc/wp-content/plugins/shortpixel-image-optimiser/class/external/visualcomposer.php

<?php

if ( ! defined( 'ABSPATH' ) ) {
 exit; // Exit if accessed directly.
}

// Visual Composer and compat class.
class visualComp
{

  public function __construct()
  {
     add_filter('shortpixel/init/automedialibrary', array($this, 'check_vcinline'));
  }

  // autolibrary should not do things when VC is being inline somewhere.
  public function check_vcinline($bool)
  {
      if ( function_exists( 'vc_action' ) && vc_action() == 'vc_inline' )
        return false;
      else
        return $bool;
  }

} // Class

$vc = new visualComp();

Zerion Mini Shell 1.0