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":104,"date":"2020-10-31T11:51:48","date_gmt":"2020-10-31T15:51:48","guid":{"rendered":"https:\/\/supcom.standardof.net\/?page_id=104"},"modified":"2020-10-31T12:55:43","modified_gmt":"2020-10-31T16:55:43","slug":"controlli","status":"publish","type":"page","link":"https:\/\/supcom.standardof.net\/it\/supreme-commander\/controls\/","title":{"rendered":"Controlli"},"content":{"rendered":"
La maggior parte dei controlli sono intuitivi e \/ o coperti dal tutorial, ma ci sono un paio di stranezze di cui prendere nota. Nota che tutti i modificatori (Shift, Ctrl, Alt, ecc.) Possono essere combinati liberamente, tranne dove diversamente indicato.<\/p>\n\n\n\n
Una scorciatoia particolarmente utile che manca al manuale \u00e8: Most controls are intuitive and\/or covered by the tutorial, but there are a couple quirks to make note of. Note that all modifiers (Shift, Ctrl, Alt, etc.) can be freely combined, except where otherwise stated. One particularly useful shortcut the manual lacks is:Ctrl + Z: Select all units of the selected type(s) on the map. […]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":14,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","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":"default","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":""}},"footnotes":""},"hf_cat_page":[10],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"SOE","author_link":"https:\/\/supcom.standardof.net\/it\/author\/k-tastic\/"},"uagb_comment_info":0,"uagb_excerpt":"Most controls are intuitive and\/or covered by the tutorial, but there are a couple quirks to make note of. Note that all modifiers (Shift, Ctrl, Alt, etc.) can be freely combined, except where otherwise stated. One particularly useful shortcut the manual lacks is:Ctrl + Z: Select all units of the selected type(s) on the map.…","_links":{"self":[{"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/pages\/104"}],"collection":[{"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":0,"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/pages\/104\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/pages\/14"}],"wp:attachment":[{"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"hf_cat_page","embeddable":true,"href":"https:\/\/supcom.standardof.net\/it\/wp-json\/wp\/v2\/hf_cat_page?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
Ctrl + Z:<\/strong> Seleziona tutte le unit\u00e0 del tipo selezionato sulla mappa. Ad esempio, se i bombardieri sono del gruppo 4, premendo 4, Ctrl + Z, Ctrl + 4 in qualsiasi momento ti assicurerai che tutti i tuoi bombardieri siano nel gruppo 4 in modo che possano colpire quando \u00e8 il momento giusto. Puoi anche rimpicciolire, fare doppio clic su un bombardiere e Ctrl + 4.<\/p>\n\n\n\nComandi di controllo per tipo<\/h3>\n\n\n\n