Filters the post parent — used to check for and prevent hierarchy loops.
Parameters
$post_parent
int- Post parent ID.
$post_id
int- Post ID.
$new_postarr
array- Array of parsed post data.
$postarr
array- 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
Version | Description |
---|---|
3.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.