Feature Request: filter to add post type support
First of all I must congratulate you on an excellent plugin.
I was just wondering if you could add a hook/filter that would allow a developer to add extra items to the “supports” array when initialising the custom post type. Basically I often use smartblocks programmatically and like to occasionally assign a featured image, custom fields or an excerpt to them. I normally add these in using another plugin (Custom Field Suite) but it would be nice to just have the option to get the smartblocks to support some other native features.
Not a major thing for many people I assume but would be nice for me!
To explain: I would just change line 37 in includes/class-swboc-common.php to:
//line 37 'supports' => apply_filters('smartblock_supports',array('title', 'editor')),
Then we can hook in and add extra supported items.
- The topic ‘Feature Request: filter to add post type support’ is closed to new replies.