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

@ -63,8 +63,9 @@ class Term extends Entity {
unset($term_array['term_id']); unset($term_array['term_id']);
unset($term_array['status']); unset($term_array['status']);
$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;
} }