'taxonomies' => array('post_tag')
в вашем register_post_type()
при регистрации произвольного типа постов.register_post_type('movies',
array(
'labels' => array(
'name' => 'Movies',
'singular_name' => 'Movie',
'menu_name' => 'MOVIES',
'all_items' => 'All Movies',
'add_new' => 'Add A Movie',
'add_new_item' => 'Add New Movie'
),
'public' => true,
'supports' => array(
'title',
'post-formats',
),
'show_in_admin_bar' => true,
'taxonomies' => array('post_tag'),
)
);
Looking at submit() in WPCF7_Submission we see a call to remove_uploaded_files() which has no filter to stop it. So apparently what you are trying to do isn't meant to be done by the author of CF7.
So apart from getting the author to include a hook there the only way I see is that you generate your file and then create a copy before adding it to the form submission so your original file stays.