Description
Filters the post parent -- used to check for and prevent hierarchy loops.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post.php | 4483 |
Parameters
Type | Name | Description |
---|---|---|
int | $post_parent | Post parent ID. |
int | $post_id | Post ID. |
array | $new_postarr | Array of parsed post data. |
array | $postarr | Array of sanitized, but otherwise unmodified post data. |
PHP Doc
/**
* Filters the post parent -- used to check for and prevent hierarchy loops.
*
* @since 3.1.0
*
* @param int $post_parent Post parent ID.
* @param int $post_id Post ID.
* @param array $new_postarr Array of parsed post data.
* @param array $postarr Array of sanitized, but otherwise unmodified post data.
*/