When you register a post type you can pass an array of arguments that it “supports.” (For example, “page-attributes,” “author,” “editor,” etc.)
I see that get_post_types has some args you can filter by, but how can I filter those that “support” specific features such as “page-attributes” or “author”? I realize I could run a loop to filter after the fact, but can this be done without an extra step?
Thanks.
Yes, this can be done. Here’s how:
This Trac ticket provides some explanation as to why that last parameterâthe ‘OR’âis necessary: http://core.trac.wordpress.org/ticket/17620