verify_connection();
// Update options with fresh quota data if API call succeeded
// Note: We only update the in-memory $options array, not the database
// This ensures fresh display without triggering validation hooks
if (!is_wp_error($fresh_status)) {
// Update quota fields in options for display only
if (isset($fresh_status["search_requests_count"])) {
$options["search_requests_count"] = absint(
$fresh_status["search_requests_count"],
);
}
if (isset($fresh_status["storage_used_bytes"])) {
$options["storage_used_bytes"] = absint(
$fresh_status["storage_used_bytes"],
);
}
if (isset($fresh_status["monthly_pages_indexed"])) {
$options["monthly_pages_indexed"] = absint(
$fresh_status["monthly_pages_indexed"],
);
}
if (isset($fresh_status["total_pages_indexed"])) {
$options["total_pages_indexed"] = absint(
$fresh_status["total_pages_indexed"],
);
}
// Do NOT call update_option() here - it could trigger validation/sync hooks
}
}
?>
https://mapleopentech.io',
); ?>