wp_check_post_hierarchy_for_loops ( $post_parent, $post_ID )
- (int) post_parent ID of the parent for the post we're checking.
- (int) post_ID ID of the post we're checking.
- (int) The new post_parent for the post, 0 otherwise.
- Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Check the given subset of the post hierarchy for hierarchy loops.Prevents loops from forming and breaks those that it finds. Attached
to the Array filter.