WordPress at a glance

wp_get_split_terms() WP 1.0

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

No Hooks.

Return

Array. Array of new term IDs, keyed by taxonomy.

Usage

wp_get_split_terms( $old_term_id );
$old_term_id(int) (required)
Term ID. This is the old, pre-split term ID.

Code of wp_get_split_terms: wp-includes/taxonomy.php VER 4.9.8

<?php
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;
}

Related Functions

From category: Taxonomies (Categories, Tags)

No comments
    Hello, !     Log In . Register