/**
 * Generates draft post with text only (no thumbnail, no SEO/ALT).
 * Returns WP_Error|int post_id.
 */
function ai_cw_generate_text_draft( $params ){
    // unpack parameters
    list($category_id,
         $post_topic,
         $related_articles,
         $selected_language,
         $selected_post_status,
         $single_post_additional_request,
         $author ) = $params;

    // === copy logic from ai_content_wizard_generate_single_post up to wp_insert_post() ===
    // to avoid copy-paste explosion we call original generator but temporarily force-disable
    // thumbnail, SEO and ALT through globals.
    $GLOBALS['ai_cw_skip_thumbnail'] = true;
    $GLOBALS['ai_cw_skip_seo_alt']   = true;

    $post_id = ai_content_wizard_generate_single_post(
        $category_id,
        $post_topic,
        $related_articles,
        $selected_language,
        $selected_post_status,
        $single_post_additional_request,
        $author
    );

    // unset flags so they do not leak
    unset($GLOBALS['ai_cw_skip_thumbnail'], $GLOBALS['ai_cw_skip_seo_alt']);

    return $post_id;
}
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//ai.allfixpro.de/main-sitemap.xsl"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<url>
		<loc>https://ai.allfixpro.de/category/uncategorized/</loc>
		<lastmod>2025-06-13T11:58:41+00:00</lastmod>
	</url>
</urlset>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->