Title: wp_get_split_term
Published: April 23, 2015
Last modified: February 24, 2026

---

# wp_get_split_term( int $old_term_id, string $taxonomy ): int|false

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#wp--skip-link--target)

Gets the new term ID corresponding to a previously split term.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#parameters)󠁿

 `$old_term_id`intrequired

Term ID. This is the old, pre-split term ID.

`$taxonomy`stringrequired

Taxonomy that the term belongs to.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#return)󠁿

 int|false If a previously split term is found corresponding to the old term_id 
and taxonomy, the new term_id will be returned. If no previously split term is found
matching the parameters, returns false.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#source)󠁿

    ```php
    function wp_get_split_term( $old_term_id, $taxonomy ) {
    	$split_terms = wp_get_split_terms( $old_term_id );

    	$term_id = false;
    	if ( isset( $split_terms[ $taxonomy ] ) ) {
    		$term_id = (int) $split_terms[ $taxonomy ];
    	}

    	return $term_id;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/taxonomy.php#L4618)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/taxonomy.php#L4618-L4627)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_get_split_terms()](https://developer.wordpress.org/reference/functions/wp_get_split_terms/)`wp-includes/taxonomy.php` |

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

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_get_split_term/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.2.0](https://developer.wordpress.org/reference/since/4.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_get_split_term%2F)
before being able to contribute a note or feedback.