Gets the new term ID corresponding to a previously split term.
Parameters
$old_term_id
intrequired- Term ID. This is the old, pre-split term ID.
$taxonomy
stringrequired- Taxonomy that the term belongs to.
Source
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;
}
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.