[wp-trac] [WordPress Trac] #21912: Add return filter to current_theme_supports()
WordPress Trac
noreply at wordpress.org
Wed May 22 23:11:12 UTC 2013
#21912: Add return filter to current_theme_supports()
-------------------------+------------------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by nacin):
What about actually doing `add_theme_support( 'post-thumbnails', 'your-
post-type' )` in your plugin? (Or whatever the exact syntax is.) That
would directly affect the return value of current_theme_supports() in
pretty much exactly the way you'd like.
Unfortunately, you need to do a get(), array_merge(), then add(). See
#22080. Because the theme support API is just a wrapper around a global
array, I could go for a filter here after all.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21912#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list