wp_insert_post -> post_content not showing

OK, SO this is what I found out, the data

<object>...</object>

was the culprit. WordPress sanitizes the input before committing to the database. Other non allowed tags include

<embed>...</embed>

I’ve seen this solution online

$postData = array( 
    ...
    'filter'=>true
    ...
);

However, some people say that’s a security flaw. I dug a little deeper and I believe the best method I found out, seems to be this:

kses_remove_filters();
$id = wp_insert_post($postData);
kses_init_filters();

Without setting

'filter' => true,

I hope this helps everyone! 🙂