On this page
wp_get_split_terms( int $old_term_id ): array
Gets data about terms that previously shared a single term_id, but have since been split.
Parameters
$old_term_idint Required-
Term ID. This is the old, pre-split term ID.
Return
array Array of new term IDs, keyed by taxonomy.
Source
File: wp-includes/taxonomy.php. View all references
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
Uses
| Uses | Description |
|---|---|
| get_option() wp-includes/option.php | Retrieves an option value based on an option name. |
Used By
| Used By | Description |
|---|---|
| wp_get_split_term() wp-includes/taxonomy.php | Gets the new term ID corresponding to a previously split term. |
Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_split_terms