I'm wondering in which way i can process the ticked categories and submit them into the array:

$my_post = array(
'post_title'    => $title,
'post_content'  => '[play_video url="'.$link.'"]',
'post_status'   => 'draft',
'post_author'   => 1,

$post_id = wp_insert_post( $my_post );

Hope is not very difficult, and hope in your help! Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.