wp_get_split_terms()
Get data about terms that previously shared a single term_id, but have since been split.
No Hooks.
Return
Array
. Array of new term IDs, keyed by taxonomy.
Usage
wp_get_split_terms( $old_term_id );
- $old_term_id(int) (required)
- Term ID. This is the old, pre-split term ID.
Changelog
Since 4.2.0 | Introduced. |
Code of wp_get_split_terms() wp get split terms WP 5.9.3
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; }