Files
igny8/igny8-ai-seo-wp-plugin/debug/debug.php
2025-11-11 21:16:37 +05:00

47 lines
1.4 KiB
PHP

<?php
/**
* ==========================
* 🔐 IGNY8 FILE RULE HEADER
* ==========================
* @file : debug.php
* @location : /debug/debug.php
* @type : Debug Tool
* @scope : Global
* @allowed : Debug functionality, development tools
* @reusability : Single Use
* @notes : Debug page (functionality moved to status page)
*/
// Prevent direct access
if (!defined('ABSPATH')) {
exit;
}
// Dev-only access guard
if (!defined('IGNY8_DEV') || IGNY8_DEV !== true) {
return;
}
// Set page variables for global layout
$current_submodule = 'debug';
$show_subnav = false;
$subnav_items = [];
// Set the page content function for global layout
function igny8_get_debug_page_content() {
ob_start();
?>
<div class="igny8-card">
<div class="igny8-card-body" style="text-align: center; padding: 40px;">
<h2 style="color: var(--text-dim); margin-bottom: 16px;">Debug Functionality Moved</h2>
<p style="color: var(--text-dim); font-size: 16px; margin-bottom: 20px;">
All debug monitoring functionality has been moved to the <strong>Settings > Status</strong> page.
</p>
<a href="<?php echo admin_url('admin.php?page=igny8-settings&sp=status'); ?>" class="igny8-btn igny8-btn-primary">
Go to Status Page
</a>
</div>
</div>
<?php
return ob_get_clean();
}