Ejemplo n.º 1
0
 /**
  * Get all post terms
  *
  * @param string $taxonomy_name
  *
  * @param string $before
  * @param string $sep
  * @param string $after
  *
  * @return bool|false|string|\WP_Error
  * @access public
  * @since  0.4
  */
 public function getTerms($taxonomy_name, $before = '', $sep = ', ', $after = '')
 {
     $taxonomy = $this->post_type->getTaxonomy();
     if ($taxonomy->isRegistered($taxonomy_name)) {
         $tax = $taxonomy->get($taxonomy_name);
         return get_the_term_list($this->getPostId(), $tax['full_name'], $before, $sep, $after);
     }
     return false;
 }