title: Wordpress set post status by user role
body: <p>Looking for function that override default post status for front end entry 
   for custom post type </p>
  
  <p>created custom post type "property"</p>
  
  <p>and custom user type "agent"</p>
  
  <p>While if there is agent posting the property </p>
  
  <p>set property status to "pending"</p>
  
  <p>any idea ... ?</p>