Advertisement
yfain

Untitled

May 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. $update_taxonomy = 'geo_ort';
  2.         $get_terms_args = array(
  3.                 'taxonomy' => $update_taxonomy,
  4.                 'fields' => 'ids',
  5.                 'hide_empty' => false
  6.         );
  7.         $update_terms = get_terms($get_terms_args);
  8.         wp_update_term_count_now($update_terms, $update_taxonomy);
  9.  
  10.         $update_taxonomy = 'objektkategorie_objektart';
  11.         $get_terms_args = array(
  12.                 'taxonomy' => $update_taxonomy,
  13.                 'fields' => 'ids',
  14.                 'hide_empty' => false
  15.         );
  16.         $update_terms = get_terms($get_terms_args);
  17.         wp_update_term_count_now($update_terms, $update_taxonomy);
  18.  
  19.         $update_taxonomy = 'objektkategorie_vermarktungsart';
  20.         $get_terms_args = array(
  21.                 'taxonomy' => $update_taxonomy,
  22.                 'fields' => 'ids',
  23.                 'hide_empty' => false
  24.         );
  25.         $update_terms = get_terms($get_terms_args);
  26.         wp_update_term_count_now($update_terms, $update_taxonomy);
  27.  
  28.         $update_taxonomy = 'objektkategorie_nutzungsart';
  29.         $get_terms_args = array(
  30.                 'taxonomy' => $update_taxonomy,
  31.                 'fields' => 'ids',
  32.                 'hide_empty' => false
  33.         );
  34.         $update_terms = get_terms($get_terms_args);
  35.         wp_update_term_count_now($update_terms, $update_taxonomy);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement