HTTP/2 301
server: nginx
date: Sun, 12 Oct 2025 02:26:33 GMT
content-type: text/html; charset=UTF-8
x-olaf: ⛄
vary: accept, content-type
x-redirect-by: WordPress
location: https://developer.wordpress.org/reference/functions/wp_get_split_term/
x-frame-options: SAMEORIGIN
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
HTTP/2 200
server: nginx
date: Sun, 12 Oct 2025 02:26:34 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
wp_get_split_term() – Function | Developer.WordPress.org
wp_get_split_term( int $old_term_id , string $taxonomy ): int|false
Gets the new term ID corresponding to a previously split term.
$old_term_id
int required Term ID. This is the old, pre-split term ID.
$taxonomy
string required Taxonomy that the term belongs to.
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.
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 View on Trac View on GitHub
Version Description 4.2.0 Introduced.
User Contributed Notes
You must log in before being able to contribute a note or feedback.