Woocommerce: create blog post after product purchase

Job ID: 33978695

Budget: $10 – $30 USD

In my website, people pay to create posts. To do it, I am using a snippet to create a post after product purchase.

I need to map woocommerce product custom fields with post meta (title, content, thumbnail).
I use WC Fields Factory plugin to insert custom fields in woocommerce products.

I have 3 custom fields:
1) text (user insert post title)
2) text area (user insert post content)
3) file (user insert post thumbnail)

I tried to map those fields, but it doesn't works (see image). I need a code correction.
Related categories: PHP JavaScript WordPress CSS WooCommerce