Skip to main content

Timeline for upload_mimes filter has no effect

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Feb 6, 2018 at 19:50 comment added hot_barbara I know this is old but something that's important to check I think is the mime type of tile on your system before writing the callback. See here for more info: stackoverflow.com/questions/2227182/…
Nov 14, 2012 at 11:50 comment added Ciprian Correct, didn't think about combining arrays. I'll stop here, as I'm going offtopic ;)
Nov 14, 2012 at 11:07 comment added kaiser @CiprianPopescu lol. You're right. .= is to combine strings. Or better: To append one string to another. Shouldn't work on arrays. But to combine two arrays, you can simply use + (if I'm now not on the wrong language (ruby?) again) :)
Nov 14, 2012 at 10:45 comment added Ciprian @kaiser += is for Javascript, .= is for PHP.
Nov 13, 2012 at 15:08 comment added kaiser @CiprianPopescu $mime_types += ...
Nov 13, 2012 at 9:19 comment added Ciprian Maybe use $mime_types .= array(, so it appends them to the default ones.
Oct 13, 2012 at 6:21 comment added chrisguitarguy this will kill all allowed mime types currently set by WP. Probably not a good idea.
Apr 3, 2012 at 18:40 comment added dnagirl It turns out that my filter is not the problem. The issue is a conflict with a backup plugin. When the plugin is off, my filter works fine. Thanks though.
Apr 3, 2012 at 18:30 history answered Gabriel S Merovingi CC BY-SA 3.0