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":129,"date":"2020-10-18T14:52:59","date_gmt":"2020-10-18T14:52:59","guid":{"rendered":"http:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2.jpg"},"modified":"2020-10-19T07:03:30","modified_gmt":"2020-10-19T07:03:30","slug":"ibomber-defense-axis-campaign-13-north-west-africa-counterattack-2","status":"inherit","type":"attachment","link":"https:\/\/ibomberdefense.standardof.net\/tl\/guide\/axis-campaign\/13-north-west-africa-counterattack\/ibomber-defense-axis-campaign-13-north-west-africa-counterattack-2\/","title":{"rendered":"“iBomber Defense” – Axis Campaign – 13. North West Africa – Counterattack (2)"},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"happyfiles_category":[35],"description":{"rendered":"

\""iBomber<\/a><\/p>\n

Showing the old routes in North West Africa. Note, the only change is the blue air path which has shifted as seen in the first picture along with the addition of a second air route.<\/p>\n"},"caption":{"rendered":"

Showing the old routes in North West Africa. Note, the only change is the blue air path which has shifted as seen in the first picture along with the addition of a second air route.<\/p>\n"},"alt_text":"\"iBomber Defense\" - Axis Campaign - 13. North West Africa - Counterattack (2)","media_type":"image","mime_type":"image\/jpeg","media_details":{"width":1280,"height":720,"file":"2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2.jpg","sizes":{"medium":{"file":"iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-512x288.jpg","width":512,"height":288,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-512x288.jpg"},"large":{"file":"iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-800x450.jpg","width":800,"height":450,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-800x450.jpg"},"thumbnail":{"file":"iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-200x113.jpg","width":200,"height":113,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-200x113.jpg"},"medium_large":{"file":"iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-768x432.jpg","width":768,"height":432,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-768x432.jpg"},"trp-custom-language-flag":{"file":"iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-16x9.jpg","width":16,"height":9,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2-16x9.jpg"},"full":{"file":"iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2.jpg","width":1280,"height":720,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2.jpg"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":348,"source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Axis-Campaign-13.-North-West-Africa-Counterattack-2.jpg","_links":{"self":[{"href":"https:\/\/ibomberdefense.standardof.net\/tl\/wp-json\/wp\/v2\/media\/129"}],"collection":[{"href":"https:\/\/ibomberdefense.standardof.net\/tl\/wp-json\/wp\/v2\/media"}],"about":[{"href":"https:\/\/ibomberdefense.standardof.net\/tl\/wp-json\/wp\/v2\/types\/attachment"}],"author":[{"embeddable":true,"href":"https:\/\/ibomberdefense.standardof.net\/tl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibomberdefense.standardof.net\/tl\/wp-json\/wp\/v2\/comments?post=129"}],"wp:term":[{"taxonomy":"happyfiles_category","embeddable":true,"href":"https:\/\/ibomberdefense.standardof.net\/tl\/wp-json\/wp\/v2\/happyfiles_category?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}