get_relation_id() 공개 메소드

Return the relation ID for the given blog ID and term taxonomy ID.
public get_relation_id ( integer $site_id, integer $term_taxonomy_id ) : string
$site_id integer Blog ID.
$term_taxonomy_id integer Term taxonomy ID.
리턴 string
 /**
  * Render the option tags for the given terms.
  *
  * @param int   $current_term Currently saved term taxonomy ID.
  * @param array $terms        Term names.
  * @param int   $site_id      Blog ID.
  *
  * @return void
  */
 private function print_term_options($terms, $current_term, $site_id)
 {
     foreach ($terms as $term_taxonomy_id => $term_name) {
         echo $this->get_option_element($term_taxonomy_id, $term_name, $current_term, $this->presenter->get_relation_id($site_id, $term_taxonomy_id));
     }
 }