wp_insert_post_parent

wp_insert_post_parent

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_insert_post_parent') is found 1 times:

  • /wp-includes/post.php line 4420
    	 * @param int   $post_id     Post ID.
    	 * @param array $new_postarr Array of parsed post data.
    	 * @param array $postarr     Array of sanitized, but otherwise unmodified post data.
    	 */
    	$post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_id, $new_postarr, $postarr );
    
    	/*
    	 * If the post is being untrashed and it has a desired slug stored in post meta,
    	 * reassign it.
    	 */
    	if ( 'trash' === $previous_status && 'trash' !== $post_status ) {