WordPress at Your Fingertips

wp_get_split_terms() WP 1.0

Get data about terms that previously shared a single term_id, but have since been split.

No Hooks.


Array. Array of new term IDs, keyed by taxonomy.


wp_get_split_terms( $old_term_id );
$old_term_id(int) (required)
Term ID. This is the old, pre-split term ID.


Since 4.2.0 Introduced.

Code of wp_get_split_terms() WP 5.8

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;

From category: Taxonomies (Categories, Tags)

No comments
    Log In