CyberAlphaWolf

Server : Apache
System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64
User : kikai ( 1014)
PHP Version : 8.3.30
Disable Function : NONE
Directory :  /home/kikai/www/wp-content/plugins/hummingbird-performance/core/integration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/kikai/www/wp-content/plugins/hummingbird-performance/core/integration/class-wph.php
<?php
/**
 * Compatibility with WP Hide & Security Enhancer.
 *
 * @since 1.9.4
 * @package Hummingbird\Core\Integration
 */

namespace Hummingbird\Core\Integration;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class WPH
 */
class WPH {

	/**
	 * WP_Hummingbird_WPH_Integration constructor.
	 *
	 * @since 1.9.4
	 */
	public function __construct() {
		add_action( 'init', array( $this, 'enable_integration' ) );
	}

	/**
	 * Enable integration.
	 *
	 * @since 1.9.4
	 */
	public function enable_integration() {
		// If WP Hide & Security Enhancer is not enabled - return.
		if ( ! defined( 'WPH_PATH' ) || ! defined( 'WPH_CORE_VERSION' ) ) {
			return;
		}

		// Page caching is not enabled.
		if ( ! apply_filters( 'wp_hummingbird_is_active_module_page_cache', false ) ) {
			return;
		}

		add_filter( 'wphb_cache_content', array( $this, 'replace_links' ) );
	}

	/**
	 * Replace links when URLs are replaced in WP Hide & Security Enhancer.
	 *
	 * @since 1.9.4
	 *
	 * @param string $content  Page buffer.
	 *
	 * @return string
	 */
	public function replace_links( $content ) {
		global $wph;
		return $wph->ob_start_callback( $content );
	}

}

XYZEAZ - Cyber Alpha Wolf © All Rights Reserved