You've already forked wc-licensed-product
Debug: simple test page
This commit is contained in:
@@ -301,14 +301,7 @@ class AnalyticsController
|
||||
*/
|
||||
public function renderStatisticsPage(): void
|
||||
{
|
||||
try {
|
||||
$stats = $this->licenseManager->getStatistics();
|
||||
$this->renderStatisticsPageFallback($stats);
|
||||
} catch (\Throwable $e) {
|
||||
echo '<div class="wrap"><h1>License Statistics - Error</h1>';
|
||||
echo '<div class="notice notice-error"><p><strong>Error:</strong> ' . esc_html($e->getMessage()) . '</p>';
|
||||
echo '<p><strong>File:</strong> ' . esc_html($e->getFile()) . ':' . esc_html($e->getLine()) . '</p></div></div>';
|
||||
}
|
||||
echo '<div class="wrap"><h1>License Statistics - DEBUG TEST</h1><p>If you see this, the callback is working.</p></div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user