wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_get_split_terms › WordPress Function

Seit4.2.0
Veraltetn/v
wp_get_split_terms ( $old_term_id )
Parameter:
  • (int) $old_term_id Term ID. This is the old, pre-split term ID.
    Erforderlich: Ja
Gibt zurück:
  • (array) Array of new term IDs, keyed by taxonomy.
Definiert in:
Codex:

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



Quellcode

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