_relocate_children

函式
_relocate_children ( $old_ID, $new_ID )
Access
Private
引數
  • (int) $old_ID
    Required:
  • (int) $new_ID
    Required:
定義位置
相關方法
get_children_get_term_childrenget_category_childrenget_page_childrenget_term_children
引入
2.3.0
棄用
3.9.0

_relocate_children: 當一個文章的父本被改變時,這個函式用來將該文章的所有子本移到新的父本上。

這曾被用來將子文章轉移到新的父文章。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function _relocate_children( $old_ID, $new_ID ) {
_deprecated_function( __FUNCTION__, '3.9.0' );
}
function _relocate_children( $old_ID, $new_ID ) { _deprecated_function( __FUNCTION__, '3.9.0' ); }
function _relocate_children( $old_ID, $new_ID ) {
	_deprecated_function( __FUNCTION__, '3.9.0' );
}

常見問題

FAQs
檢視更多 >