WPDev.one
Core Function
View Source on Trac ↗

wp_write_post()

wp_write_post( )

Creates a new post from the "Write Post" form using `$_POST` information.

Return Value

((int)
| WP_Error) Post ID on success, WP_Error on failure.

Function Information

Since Version
2.1.0
Source File
wp-admin/includes/post.php
Advertisement