wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



write_post › WordPress Function

Da2.0.0
Deprecaton/a
write_post ( Nessun parametro )
Ritorna:
  • (int|void) Post ID on success, void on failure.
Definito a:
Codex:

Calls wp_write_post() and handles the errors.



Sorgenti

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