write_post

Advertisement

Summery Summery

Calls wp_write_post() and handles the errors.

Syntax Syntax

write_post()

Return Return

(int|null)

Source Source

File: wp-admin/includes/post.php

function write_post() {
	$result = wp_write_post();
	if ( is_wp_error( $result ) ) {
		wp_die( $result->get_error_message() );
	} else {
		return $result;
	}
}

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply