apply_filters( 'wp_insert_post_parent', int $post_parent, int $post_ID, array $new_postarr, array $postarr )

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


Parameters

$post_parent

Post parent ID.

$post_ID

Post ID.

$new_postarr

Array of parsed post data.

$postarr

Array of sanitized, but otherwise unmodified post data.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.1.0 Introduced.