Summery Summery

Get the new term ID corresponding to a previously split term.

Syntax Syntax

wp_get_split_term( int $old_term_id, string $taxonomy )

Parameters Parameters


(Required) Term ID. This is the old, pre-split term ID.


(Required) Taxonomy that the term belongs to.

Return Return

(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.

Source Source

File: wp-includes/taxonomy.php

function _wp_check_for_scheduled_split_terms() {
	if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_split_shared_term_batch' ) ) {
		wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_split_shared_term_batch' );

 * Check default categories when a term gets split to see if any of them need to be updated.
 * @ignore


Changelog Changelog

Version Description
4.2.0 Introduced.


Leave a Reply