I’m trying to add more rows in the media picker modal window. Is there any clean way to achieve doing this ?
Thanks !
I’m trying to add more rows in the media picker modal window. Is there any clean way to achieve doing this ?
Thanks !
You must be logged in to post a comment.
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.
This filter is triggered just before paginate_links is called.
I have made a WordPress plugin for the complete solution, which you will find in the repository.
http://wordpress.org/extend/plugins/mediapicker-more-rows/
This works but the big issue is to solve the pagination, because it is completely broken.
Is there a way to hook here?