Reply To: 2 Feature Requests

#382

Constantin
Keymaster

@jayskibob

You can hook to cbc_post_insert action and add any additional information needed. It passes 4 parameters:

1. $post_id – id of newly created post
2. $video – an array containing the video details returned by YouTube API
3. $theme_impot – if importing for theme (user checked Import as posts compatible with…) this will be an array otherwise it’s false.
4. $post_type – the post type created