| Server IP : 167.179.152.94 / Your IP : 216.73.216.169 Web Server : Apache/2.4.66 (Debian) System : Linux 6d8cbb3dc321 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : ( 1000) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/google-analytics-for-wordpress/includes/admin/pages/ |
Upload File : |
<?php
/**
* Reports class.
*
* @since 6.0.0
*
* @package MonsterInsights
* @subpackage Reports
* @author Chris Christoff
*/
// Exit if accessed directly
if (! defined('ABSPATH')) {
exit;
}
function monsterinsights_reports_page_body_class($classes)
{
if (! empty($_REQUEST['page']) && $_REQUEST['page'] === 'monsterinsights_reports') {
$classes .= ' monsterinsights-reporting-page ';
}
return $classes;
}
add_filter('admin_body_class', 'monsterinsights_reports_page_body_class');
/**
* Callback for getting all of the reports tabs for MonsterInsights.
*
* @return array Array of tab information.
* @since 6.0.0
* @access public
*
*/
function monsterinsights_get_reports()
{
/**
* Developer Alert:
*
* Per the README, this is considered an internal hook and should
* not be used by other developers. This hook's behavior may be modified
* or the hook may be removed at any time, without warning.
*/
$reports = apply_filters('monsterinsights_get_reports', array());
return $reports;
}
/**
* Callback to output the MonsterInsights reports page.
*
* @return void
* @since 6.0.0
* @access public
*
*/
function monsterinsights_reports_page()
{
/**
* Developer Alert:
*
* Per the README, this is considered an internal hook and should
* not be used by other developers. This hook's behavior may be modified
* or the hook may be removed at any time, without warning.
*/
do_action('monsterinsights_head');
echo monsterinsights_ublock_notice(); // phpcs:ignore
monsterinsights_settings_error_page('monsterinsights-reports');
monsterinsights_settings_inline_js();
}