Uses
| Uses | Description |
|---|---|
| wp-includes/option.php: get_option() | Retrieves an option value based on an option name. |
Get data about terms that previously shared a single term_id, but have since been split.
(int) (Required) Term ID. This is the old, pre-split term ID.
(array) Array of new term IDs, keyed by taxonomy.
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;
} | Version | Description |
|---|---|
| 4.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_split_terms