apply_filters( ‘wp_insert_post_parent’, int $post_parent, int $post_id, array $new_postarr, array $postarr )

In this article

Filters the post parent — used to check for and prevent hierarchy loops.

Parameters

$post_parentint
Post parent ID.
$post_idint
Post ID.
$new_postarrarray
Array of parsed post data.
$postarrarray
Array of sanitized, but otherwise unmodified post data.

Source

$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr );

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

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