do_action( ‘pre_post_insert’, array $data )

In this article

Fires immediately before a new post is inserted in the database.

Parameters

$dataarray
Array of unslashed post data.

Source

do_action( 'pre_post_insert', $data );

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.