Changed source root directory

This commit is contained in:
2026-03-05 16:30:11 +01:00
parent dc85447ee1
commit 538f85d7a2
5868 changed files with 749734 additions and 99 deletions

View File

@@ -0,0 +1,26 @@
<?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;
}