In the last episode, you built a function to handle grabbing all of the post’s post type features. But what if you don’t want all of them? It would be nice to make our new function more reusable by passing in features to exclude. In this episode, you’ll extend your new function by adding the exclude option. We want to exclude trackbacks, comments, excerpts, and custom fields features. You can follow along in WordPress codex. You will use the following PHP and WordPress Core functions: get_all_post_type_supports() array_keys() foreach() in_array() continue()
