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-includes/feed-rss2.php on line 8
Solar 2 Strategy Guide https://solar2.standardof.net Helping You Get Better at Games to Impress Your Mother Wed, 11 Nov 2020 12:01:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.10 https://solar2.standardof.net/wp-content/uploads/sites/2/2020/10/Solar-2-Favicon-64px-1.png Solar 2 Strategy Guide https://solar2.standardof.net 32 32 [ENDED] Steam Key Giveaway: “X-COM: UFO Defense” https://solar2.standardof.net/2020/11/06/steam-key-giveaway-x-com-ufo-defense/ https://solar2.standardof.net/2020/11/06/steam-key-giveaway-x-com-ufo-defense/#respond Fri, 06 Nov 2020 00:16:35 +0000 https://solar2.standardof.net/?p=534 ]]> https://solar2.standardof.net/2020/11/06/steam-key-giveaway-x-com-ufo-defense/feed/ 0 [ENDED] Steam Key Giveaway: “Xcom: Terror from the Deep” https://solar2.standardof.net/2020/10/23/steam-key-giveaway-xcom-terror-from-the-deep/ https://solar2.standardof.net/2020/10/23/steam-key-giveaway-xcom-terror-from-the-deep/#respond Fri, 23 Oct 2020 20:10:46 +0000 https://solar2.standardof.net/?p=495

]]>
https://solar2.standardof.net/2020/10/23/steam-key-giveaway-xcom-terror-from-the-deep/feed/ 0