Customize WordPress Media Manager – Media Window
Customize WordPress Media Manager – Media Window
Customize WordPress Media Manager – Media Window
Yes, the media library is long overdue an overhaul, and it seems there are some guys working on it right now. With any luck some changes will make it in to the next release. Take a look here at some of the slides and the many commments and feedback: http://make.wordpress.org/ui/2012/07/30/media-wireframes/
When calling add_filter( ‘image_size_names_choose’, ‘custom_image_sizes_choose’ ); use your investigative skills to see how it would be best to call an if(thisweretrue) add_filter( ‘image_size_names_choose’, ‘custom_image_sizes_choose’ ); since I don’t know exactly what your specific situation is. I actually was able to use your solution for setting up the custom sizes to help out with what I … Read more
wordpress sucks in keeping media<=>content relationships. Part of the problem is that by default all media are public once they are uploaded and you have no way to know where are they are being used. Just because an image is not referenced anymore in its original post doesn’t mean that it is not referenced at … Read more
my plugin: http://wordpress.org/extend/plugins/mediapicker-more-rows/ I found a way to fix the pagination There is a way you can ‘hook’ into paginate_links. There is no official hook for it, but you can change the $wp_query->found_posts variable. What I did here is ‘hooking’ into the paginate_links by abusing the media_upload_mime_type_links filter and setting a new value for $wp_query->found_posts. … Read more
Nice Question! Poking around it a little bit, this seems to be working (further tests and a more qualified look are much welcome:). Tested only in a localhost development install with subdomains. No domain mapping. Change the following .htaccess rewrite rule: # uploaded files # RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteRule ^files/(.+) dl-files.php?file=$1 [L] Make a … Read more
Yes, it’s possible in the same manner as before. I don’t know why you think the filter is not passing the parameters anymore. add_filter(‘attachment_fields_to_edit’, ‘user16975_edit_fields’, 10, 2); function user16975_edit_fields($form_fields, $attachment){ // check for an audio attachment if ( substr($attachment->post_mime_type, 0, 5) == ‘audio’ ) { $playertag = $playertag = “”; $form_fields[“audioplayer”] = array( “label” => … Read more
You could add an ID as post_parent to the attachment of the header image via wp_update_post() (even though this seems to be a very very hacky way to do it!) The tricky part is to get the ID out of the attachment URL; fortunately Rarst solved this issue long time ago, so you can manually … Read more
For the part of opening a lightbox, browse for something and then performing something on an action within: WordPress has this already build in. For what you ask is basically the thickbox that opens up like in the post editor when you browse for an image in the gallery. You find all the code you … Read more
For updates it is ‘edit_attachment’ and for new attachments ‘add_attachment’. There is no action dedicated to images coming from the gallery tab, but you could check the global array $_FILES. If there is a $_FILES[‘async-upload’] it is probably a request from the media popup.