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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831

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/rest-api/class-wp-rest-server.php on line 1831
{"id":71,"date":"2020-10-13T23:44:39","date_gmt":"2020-10-13T23:44:39","guid":{"rendered":"https:\/\/solar2.standardof.net\/?page_id=71"},"modified":"2020-10-14T12:52:22","modified_gmt":"2020-10-14T12:52:22","slug":"%e0%a6%9a%e0%a7%8d%e0%a6%af%e0%a6%be%e0%a6%b2%e0%a7%87%e0%a6%9e%e0%a7%8d%e0%a6%9c-%e0%a6%ae%e0%a6%bf%e0%a6%b6%e0%a6%a8-2-%e0%a6%9c%e0%a6%ae%e0%a7%8d%e0%a6%ac%e0%a6%bf-%e0%a6%9c%e0%a7%8d%e0%a6%af","status":"publish","type":"page","link":"https:\/\/solar2.standardof.net\/bn\/solar-2-guide\/asteroid-stage\/challenge-mission-2-zombie-geometry\/","title":{"rendered":"\u0997\u09cd\u09b0\u09b9\u09be\u09a3\u09c1 \u099a\u09cd\u09af\u09be\u09b2\u09c7\u099e\u09cd\u099c \u09ae\u09bf\u09b6\u09a8 2: \u099c\u09ae\u09cd\u09ac\u09bf \u099c\u09cd\u09af\u09be\u09ae\u09bf\u09a4\u09bf"},"content":{"rendered":"

\u099a\u09cd\u09af\u09be\u09b2\u09c7\u099e\u09cd\u099c \u09ae\u09bf\u09b6\u09a8 2: \u099c\u09cd\u09af\u09be\u09ae\u09cd\u09ac\u09bf \u099c\u09cd\u09af\u09be\u09ae\u09bf\u09a4\u09bf<\/h2>\n\n\n\n