WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcalexington/public_html/wp-content/plugins/wp-hummingbird/core/integration/wph.php
<?php
/**
 * Compatibility with WP Hide & Security Enhancer.
 *
 * @since 1.9.4
 * @package Hummingbird
 */

/**
 * Class WP_Hummingbird_WPH_Integration
 */
class WP_Hummingbird_WPH_Integration {

	/**
	 * 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;
		}


		if ( ! WP_Hummingbird_Settings::get_setting( 'enabled', 'page_cache' ) ) {
			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;

		$content = $wph->functions->content_urls_replacement( $content, $wph->functions->get_replacement_list() );

		return $content;
	}

}

new WP_Hummingbird_WPH_Integration();