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.

Description Description

Parameters Parameters


(int) Post parent ID.


(int) Post ID.


(array) Array of parsed post data.


(array) Array of sanitized, but otherwise unmodified post data.

Top ↑

Source Source

File: wp-includes/post.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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