A WordPress-centric search engine for devs and theme authors



wp_insert_post_parent ›

Since3.1.0
Deprecatedn/a
apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr )
Parameters: (4)
  • (int) $post_parent Post parent ID.
    Required: Yes
  • (int) $post_ID Post ID.
    Required: Yes
  • (array) $new_postarr Array of parsed post data.
    Required: Yes
  • (array) $postarr Array of sanitized, but otherwise unmodified post data.
    Required: Yes
Defined at:
Codex:

Filters the post parent -- used to check for and prevent hierarchy loops.





Source

$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr ) ), $postarr );