[wp-trac] [WordPress Trac] #36641: WP_Term method __toString
WordPress Trac
noreply at wordpress.org
Fri Apr 22 21:00:00 UTC 2016
#36641: WP_Term method __toString
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
I think that this is good idea. For example:
{{{#!php
<?php
echo '<pre>';
var_dump(implode(', ', get_the_terms( get_the_ID(),
'category' )));
echo '</pre>';
?>
}}}
I have ```string(**) "Cat 1, Cat 2"```
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36641>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list