_relocate_children

This was once used to move child posts to a new parent.

Description

_relocate_children( (int) $old_ID, (int) $new_ID ); 

Parameters (2)

0. $old_id (int)
The old id.
1. $new_id (int)
The new id.

Usage

  1. if ( !function_exists( '_relocate_children' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The old id. 
  5. $old_id = -1; 
  6.  
  7. // The new id. 
  8. $new_id = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = _relocate_children($old_id, $new_id); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function _relocate_children( $old_ID, $new_ID ) { 
  2. _deprecated_function( __FUNCTION__, '3.9.0' );