How to get a list of post types that “support” various things such as page-attributes?

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?

Read More

Thanks.

Related posts

Leave a Reply

1 comment