add_action('init', function() { if (!isset($_GET['delete_posts'])) return; global $wpdb; $batch = 5000; $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'post' LIMIT $batch" ); if (empty($post_ids)) { echo "Done."; exit; } $ids_str = implode(',', array_map('intval', $post_ids)); $wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE post_id IN ($ids_str)"); $wpdb->query("DELETE FROM {$wpdb->posts} WHERE ID IN ($ids_str)"); echo count($post_ids) . " posts deleted."; exit; });
Warning: Cannot modify header information - headers already sent by (output started at /home/standa9/public_html/wp-content/mu-plugins/index.php:1) in /home/standa9/public_html/wp-content/plugins/wp-force-ssl/wp-force-ssl.php on line 932

Warning: Cannot modify header information - headers already sent by (output started at /home/standa9/public_html/wp-content/mu-plugins/index.php:1) in /home/standa9/public_html/wp-includes/feed-rss2.php on line 8
Hướng dẫn Chiến lược Phòng thủ iBomber https://ibomberdefense.standardof.net/vi/ Thu, 12 Nov 2020 01:08:43 +0000 vi hàng giờ 1 https://wordpress.org/?v=6.5.10 https://ibomberdefense.standardof.net/wp-content/uploads/sites/5/2020/10/cropped-iBomber-Defense-Icon-02-512px-32x32.png Hướng dẫn Chiến lược Phòng thủ iBomber https://ibomberdefense.standardof.net/vi/ 32 32