wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_insert_post_parent › WordPress过滤钩子

Since3.1.0
已弃用n/a
› apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr )
参数: (4)
  • () post_parent Post parent ID.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
  • () new_postarr Array of parsed post data.
    Required: Yes
  • () postarr Array of sanitized, but otherwise unmodified post data.
    Required: Yes
定义在:
文档:

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





源码

$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr );