Definition:
function write_post() {}
Calls wp_write_post() and handles the errors.
Source code
function write_post() { $result = wp_write_post(); if ( is_wp_error( $result ) ) wp_die( $result->get_error_message() ); else return $result; }
4279
No comments yet... Be the first to leave a reply!