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.

Возвращает

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

No Hooks.

Usage

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

Список изменений

С версии 4.2.0 Введена.

Code of wp_get_split_terms() WP 5.5.1

wp-includes/taxonomy.php
<?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
    Log In . Register