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":12,"date":"2020-10-18T14:39:30","date_gmt":"2020-10-18T14:39:30","guid":{"rendered":"http:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3.jpg"},"modified":"2020-10-19T05:23:15","modified_gmt":"2020-10-19T05:23:15","slug":"ibomber-defense-allied-quick-play-02-western-mediterranean-3","status":"inherit","type":"attachment","link":"https:\/\/ibomberdefense.standardof.net\/de\/guide\/quick-play-and-bonus-levels\/allied-western-mediterranean\/ibomber-defense-allied-quick-play-02-western-mediterranean-3\/","title":{"rendered":"iBomber Defense – Allied Quick Play 02 – Western Mediterranean (3)"},"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":[6],"description":{"rendered":"

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

Wave 10 turret placement.<\/p>\n"},"caption":{"rendered":"

Wave 10 turret placement.<\/p>\n"},"alt_text":"\"iBomber Defense\" - Allied Quick Play 02 - Western Mediterranean (3)","media_type":"image","mime_type":"image\/jpeg","media_details":{"width":1280,"height":800,"file":"2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3.jpg","sizes":{"medium":{"file":"iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-512x320.jpg","width":512,"height":320,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-512x320.jpg"},"large":{"file":"iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-800x500.jpg","width":800,"height":500,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-800x500.jpg"},"thumbnail":{"file":"iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-200x125.jpg","width":200,"height":125,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-200x125.jpg"},"medium_large":{"file":"iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-768x480.jpg","width":768,"height":480,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-768x480.jpg"},"trp-custom-language-flag":{"file":"iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-16x10.jpg","width":16,"height":10,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3-16x10.jpg"},"full":{"file":"iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3.jpg","width":1280,"height":800,"mime_type":"image\/jpeg","source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3.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":262,"source_url":"https:\/\/ibomberdefense.standardof.net\/wp-content\/uploads\/sites\/5\/2020\/10\/iBomber-Defense-Allied-Quick-Play-02-Western-Mediterranean-3.jpg","_links":{"self":[{"href":"https:\/\/ibomberdefense.standardof.net\/de\/wp-json\/wp\/v2\/media\/12"}],"collection":[{"href":"https:\/\/ibomberdefense.standardof.net\/de\/wp-json\/wp\/v2\/media"}],"about":[{"href":"https:\/\/ibomberdefense.standardof.net\/de\/wp-json\/wp\/v2\/types\/attachment"}],"author":[{"embeddable":true,"href":"https:\/\/ibomberdefense.standardof.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibomberdefense.standardof.net\/de\/wp-json\/wp\/v2\/comments?post=12"}],"wp:term":[{"taxonomy":"happyfiles_category","embeddable":true,"href":"https:\/\/ibomberdefense.standardof.net\/de\/wp-json\/wp\/v2\/happyfiles_category?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}