HEX
Server: Apache/2
System: Linux host.jethost.pl 4.19.0-26-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09) x86_64
User: frigodor (1049)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,mail
Upload Files
File: /home/frigodor/public_html/wp-content/themes/Divi/includes/builder/plugin-compat/wp3d-models.php
<?php
/**
 * Compatibility for WP3D Models.
 *
 * @package Divi
 * @subpackage Builder
 * @since 4.10.8
 */

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

/**
 * Compatibility for WP3D Models.
 *
 * @since 4.10.8
 *
 * @link https://wp3dmodels.com/
 */
class ET_Builder_Plugin_Compat_WP3D_Models extends ET_Builder_Plugin_Compat_Base {
	/**
	 * Constructor.
	 *
	 * @since 4.10.8
	 */
	public function __construct() {
		$this->init_hooks();
	}

	/**
	 * Hook methods to WordPress.
	 *
	 * @since 4.10.8
	 *
	 * @return void
	 */
	public function init_hooks() {
		// No version check here is intentional: the plugin is very niche, commercial only,
		// expensive and they ignored my request to provide a copy so that I could fix the issue.
		// Due the above, we don't know the complete slug.
		// However, by checking customer's site, we know for sure that folder is name `wp3d-models`
		// and that's enough to detect the plugin and disable JQuery Body.
		add_filter( 'et_builder_enable_jquery_body', '__return_false', 10, 2 );
	}
}

new ET_Builder_Plugin_Compat_WP3D_Models();