You appear to be a bot. Output may be restricted
Description
Makes sure the taxonomy meta is updated when a taxonomy term is split.
Usage
wpseo_split_shared_term( $old_term_id, $new_term_id, $term_taxonomy_id, $taxonomy );
Parameters
- $old_term_id
- ( string ) required – Old term id of the taxonomy term that was splitted.
- $new_term_id
- ( string ) required – New term id of the taxonomy term that was splitted.
- $term_taxonomy_id
- ( string ) required – Term taxonomy id for the taxonomy that was affected.
- $taxonomy
- ( string ) required – The taxonomy that the taxonomy term was splitted for.
Returns
void
Source
File name: wordpress-seo/inc/wpseo-functions.php
Lines:
1 to 10 of 10
function wpseo_split_shared_term( $old_term_id, $new_term_id, $term_taxonomy_id, $taxonomy ) { $tax_meta = get_option( 'wpseo_taxonomy_meta', array() ); if ( ! empty( $tax_meta[ $taxonomy ][ $old_term_id ] ) ) { $tax_meta[ $taxonomy ][ $new_term_id ] = $tax_meta[ $taxonomy ][ $old_term_id ]; unset( $tax_meta[ $taxonomy ][ $old_term_id ] ); update_option( 'wpseo_taxonomy_meta', $tax_meta ); } }