| 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 : |
<?php
/**
* Monitor what the requests going to wp-admin/admin-ajax.php
*
* This is useful for determining the cause of high traffic to the admin-ajax.php file
*
* @package Monitor Admin Ajax
* @author Donovan Hernandez
*/
// If it's not a POST request, just move along
if ( $_SERVER['REQUEST_METHOD'] != "POST" ) {
return;
}
// We only want to monitor admin-ajax.php hits.
if ( strpos( $_SERVER['PHP_SELF'], 'wp-admin/admin-ajax.php' ) === false ) {
return;
}
// Load the class
if ( ! class_exists( 'Monitor_Admin_Ajax', false ) ) {
require_once( WPE_PLUGIN_DIR . '/class-monitor_admin_ajax.php' );
}
$logger = Monitor_Admin_Ajax::get_instance();
$logger->write_log();