wp_get_split_terms( int $old_term_id )
Get data about terms that previously shared a single term_id, but have since been split.
Description Description
Parameters Parameters
- $old_term_id
-
(int) (Required) Term ID. This is the old, pre-split term ID.
Return Return
(array) Array of new term IDs, keyed by taxonomy.
Source Source
File: wp-includes/taxonomy.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;
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |