This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/includes/builder/plugin-compat/kvcore-idx.php
2021-12-07 11:08:05 +00:00

52 lines
915 B
PHP

<?php
/**
* Compatibility for kvCORE.
*
* @package Divi
* @subpackage Builder
* @since 4.10.8
*/
if ( ! defined( 'ABSPATH' ) ) {
// Exit if accessed directly.
exit;
}
/**
* Compatibility for kvCORE.
*
* @since 4.10.8
*
* @link https://wordpress.org/plugins/kvcore-idx/
*/
class ET_Builder_Plugin_Compat_KvCORE extends ET_Builder_Plugin_Compat_Base {
/**
* Constructor.
*
* @since 4.10.8
*/
public function __construct() {
$this->plugin_id = 'kvcore-idx/kvcore-idx.php';
$this->init_hooks();
}
/**
* Hook methods to WordPress.
*
* @since 4.10.8
*
* @return void
*/
public function init_hooks() {
// Bail if there's no version found.
if ( ! $this->get_plugin_version() ) {
return;
}
// Plugin is just incompatible with JQuery Body feature.
add_filter( 'et_builder_enable_jquery_body', '__return_false', 10, 2 );
}
}
new ET_Builder_Plugin_Compat_KvCORE();