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



wp_get_split_terms › WordPress Function

Since4.2.0
已弃用n/a
wp_get_split_terms ( $old_term_id )
参数:
  • (int) $old_term_id Term ID. This is the old, pre-split term ID.
    Required: Yes
返回:
  • (array) Array of new term IDs, keyed by taxonomy.
定义在:
文档:

Gets data about terms that previously shared a single term_id, but have since been split.



源码

function wp_get_split_terms( $old_term_id ) {
	$split_terms = get_option( '_split_terms', array() );

	$terms = array();
	if ( isset( $split_terms[ $old_term_id ] ) ) {
		$terms = $split_terms[ $old_term_id ];
	}

	return $terms;
}