Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $update_taxonomy = 'geo_ort';
- $get_terms_args = array(
- 'taxonomy' => $update_taxonomy,
- 'fields' => 'ids',
- 'hide_empty' => false
- );
- $update_terms = get_terms($get_terms_args);
- wp_update_term_count_now($update_terms, $update_taxonomy);
- $update_taxonomy = 'objektkategorie_objektart';
- $get_terms_args = array(
- 'taxonomy' => $update_taxonomy,
- 'fields' => 'ids',
- 'hide_empty' => false
- );
- $update_terms = get_terms($get_terms_args);
- wp_update_term_count_now($update_terms, $update_taxonomy);
- $update_taxonomy = 'objektkategorie_vermarktungsart';
- $get_terms_args = array(
- 'taxonomy' => $update_taxonomy,
- 'fields' => 'ids',
- 'hide_empty' => false
- );
- $update_terms = get_terms($get_terms_args);
- wp_update_term_count_now($update_terms, $update_taxonomy);
- $update_taxonomy = 'objektkategorie_nutzungsart';
- $get_terms_args = array(
- 'taxonomy' => $update_taxonomy,
- 'fields' => 'ids',
- 'hide_empty' => false
- );
- $update_terms = get_terms($get_terms_args);
- wp_update_term_count_now($update_terms, $update_taxonomy);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement