Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Check for existence of post_type of posts #214
Do not always assume that a new post's post_type exists / is registered.
wp_insert_post( array( 'post_type' => 'non_registered_post_type' ) );