$post_type, 'posts_per_page' => -1, 'post_status' => 'any', ]); foreach ($posts as $post) { wp_delete_post($post->ID, true); } } // Eliminar taxonomías $taxonomies = ['iniciativa', 'linea_trabajo', 'tipo_evento']; foreach ($taxonomies as $taxonomy) { $terms = get_terms([ 'taxonomy' => $taxonomy, 'hide_empty' => false, ]); foreach ($terms as $term) { wp_delete_term($term->term_id, $taxonomy); } } */