| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www/wp-content/plugins/honeypot/includes/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
add_action("wp_dashboard_setup", "wpa_dashboard_widget");
function wpa_dashboard_widget()
{
//add_meta_box( 'wpa_dashboard_widget', 'WP Armour Anti Spam Statistics', 'wpa_dashboard_widget_function', 'dashboard', 'side', 'high');
if ( current_user_can('administrator') ) {
add_meta_box(
'wpa_dashboard_widget',
'WP Armour Anti Spam Statistics',
'wpa_dashboard_widget_function',
'dashboard',
'side',
'high'
);
}
}
function wpa_dashboard_widget_function(){
ob_start();
include('views/wpa_stats_widget.php');
$widget_content = ob_get_contents();
ob_end_clean ();
$widget_content = apply_filters( 'wpa_widget_content', $widget_content);
echo $widget_content;
}