title: how to insert photo using wp_insert_post
body: <p>my question is about using wp_insert_post to insert post with type "photo" 
  not needs to upload the image right now just I want to insert the post information into the database
  I used this code and it is working </p>
  
  <pre><code>$my_post = array(
  
       'post_title' =&gt; 'My post',
       'post_content' =&gt; 'This is my post.',
       'post_status' =&gt; 'publish',
       'post_author' =&gt; 1,
        'post_type' =&gt; 'photo',
       'post_category' =&gt; array(3)
    );
  </code></pre>
  
  <p>the question is I want to add the following informations
  1- the photo type 
  2- I want to set the post as a featured Image </p>