[wp-trac] [WordPress Trac] #17584: Add post_type_supports filter
WordPress Trac
wp-trac at lists.automattic.com
Fri May 27 16:32:34 UTC 2011
#17584: Add post_type_supports filter
-----------------------------+------------------------------
Reporter: mitchoyoshitaka | Owner: mitchoyoshitaka
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: trivial | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by mitchoyoshitaka):
Replying to [comment:2 scribu]:
> Couldn't the same effect be achieved by using add_post_type_support()
and remove_post_type_support() ?
>
> There's no filter on current_theme_supports() either.
The use case I'm thinking of is for enforcing a certain combination of
support features, or disallowing certain combinations. In particular, for
[http://wordpress.org/extend/plugins/xml-documents/ this plugin], I want
to ensure that post types that support 'xmldoc' do not support 'editor'. I
don't think there's a good way to do that right now... filtering on
add_post_type_support would be an alternative, though, but I think this
has more flexibility.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17584#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list