wp_write_post
wp_write_post ( No parameters )
Returns:- (int|WP_Error) Post ID on success, WP_Error on failure.
Defined at: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Creates a new post from the "Write Post" form using `$_POST` information.