[wp-trac] [WordPress Trac] #14162: Introduce WP_Term class
WordPress Trac
noreply at wordpress.org
Thu Feb 12 11:04:25 UTC 2015
#14162: Introduce WP_Term class
---------------------------+-----------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: needs-refresh | Focuses:
---------------------------+-----------------------------
Comment (by fgirardey):
I think it is a good idea, an example of a practical use would also be the
:
{{{#!php
$term = get_term_by( 'name', 'Term Name', 'taxname' );
if ( is_a( $term, 'WP_Term' ) ) {
...
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14162#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list