Add a new tag based on the category name in the publish event

You have to add the true parameter to the wp_set_post_tags() function. Tested and works, the corrected code:

add_filter('wp_insert_post', 'add_cat_to_tags', 10, 3 );
function add_cat_to_tags( $post_ID, $post, $update ) {
   $tags = array();
   $cats = get_the_category( $post_ID );
   foreach ( $cats as $cat ) {
      $tags[] .= $cat->name;
   }
   // overwrites any existing tags!!
   wp_set_post_tags( $post_ID, $tags, true );
}

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş