Adds attribute url to term
This commit is contained in:
parent
dd2d0b7c9b
commit
e4d349d629
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue