Front page › Forums › CodeCanyon products › WordPress YouTube video post plugin › 2 Feature Requests › Reply To: 2 Feature Requests
October 10, 2014 at 10:02 PM
#382
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