WPDev.one
Core Function
View Source on Trac ↗

wp_check_post_hierarchy_for_loops()

wp_check_post_hierarchy_for_loops( mixed $post_parent, mixed $post_id )

Checks the given subset of the post hierarchy for hierarchy loops.

Parameters 2 required

Name / Type Description
$post_parent
int

ID of the parent for the post we're checking.

Required
$post_id
int

ID of the post we're checking.

Required

Return Value

(int)
The new post_parent for the post, 0 otherwise.

Function Information

Since Version
3.1.0
Source File
wp-includes/post.php
Advertisement