HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/wplister.cls.php.tar
www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/litespeed-cache/thirdparty/wplister.cls.php000064400000001261151542767270031006 0ustar00var<?php
/**
 * The Third Party integration with the WPLister plugin.
 *
 * @since        1.1.0
 */
namespace LiteSpeed\Thirdparty;

defined('WPINC') || exit();

class WPLister
{
	/**
	 * Detects if WooCommerce and WPLister are installed.
	 *
	 * @since 1.1.0
	 * @access public
	 */
	public static function detect()
	{
		if (defined('WOOCOMMERCE_VERSION') && defined('WPLISTER_VERSION')) {
			// User reported this will sync correctly.
			add_action('wplister_revise_inventory_status', array(WooCommerce::cls(), 'backend_purge'));
			// Added as a safety measure for WPLister Pro only.
			add_action('wplister_inventory_status_changed', array(WooCommerce::cls(), 'backend_purge'));
		}
	}
}