| Server IP : 213.132.222.41 / Your IP : 216.73.216.254 Web Server : Apache System : Linux plesk4.nlhosting.net 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : thecovenant ( 10927) PHP Version : 8.3.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/thecovenant.nl/httpdocs/new/wp-content/themes/neve/inc/compatibility/ |
Upload File : |
<?php
/**
* PPOM compatibility.
*
* @package Neve\Compatibility
*/
namespace Neve\Compatibility;
/**
* Class PPOM
*/
class PPOM {
/**
* Init function.
*
* @return bool
*/
public function init() {
if ( ! $this->should_load() ) {
return false;
}
$this->load_hooks();
return true;
}
/**
* Is plugin available?.
*/
private function should_load() {
return defined( 'PPOM_VERSION' );
}
/**
* Load hooks.
*/
private function load_hooks() {
/**
* Neve has display:flex on the single product page, but PPOM has display:block on the same page.
* Prevent PPOM's override of Neve's CSS.
*
* Issue: https://github.com/Codeinwp/woocommerce-product-addon/issues/106
*/
add_filter( 'ppom_sp_ac_force_css_display_block', '__return_false' );
}
}