Adds attribute url to term

This commit is contained in:
weryques 2018-05-15 08:58:38 -03:00
parent dd2d0b7c9b
commit e4d349d629
1 changed files with 2 additions and 1 deletions

View File

@ -65,6 +65,7 @@ class Term extends Entity {
$term_array['id'] = $term_id; $term_array['id'] = $term_id;
$term_array['header_image'] = $this->get_header_image(); $term_array['header_image'] = $this->get_header_image();
$term_array['url'] = get_term_link( $this->get_id() );
return $term_array; return $term_array;
} }