On this page
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_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
File: wp-includes/post.php. View all references
$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, $new_postarr, $postarr );
Related
Used By
| Used By | Description |
|---|---|
| wp_insert_post() wp-includes/post.php | Inserts or update a post. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_insert_post_parent