[wp-hackers] get_theme_support( 'post-formats' )

Chip Bennett chip at chipbennett.net
Wed Jan 12 16:41:52 UTC 2011


And would the object be the same as with get_categories(), such that:

$obj->name = slug
$obj->nicename = display name

etc.?

Chip

On Wed, Jan 12, 2011 at 10:34 AM, Otto <otto at ottodestruct.com> wrote:

> On Wed, Jan 12, 2011 at 11:32 AM, Chip Bennett <chip at chipbennett.net>
> wrote:
> > Does this preclude the need to bother with get_theme_support()? Or will I
> > generate errors for unsupported $format->name values?
>
> get_terms just gets whatever terms exist in the database for that
> taxonomy. If you only have ever used gallery, then that's all you get
> back.
>
>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list