New answers tagged

-1

You can restrict users to seeing only their own uploaded media with this piece of code: <?php /* Plugin Name: Manage Your Media Only Version: 0.1 */ //Manage Your Media Only function mymo_parse_query_useronly( $wp_query ) { if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false ) { if ( !current_user_can( 'level_5' ) ) { ...


0

I think a possible solution could be following codesnippet from Mark Kaplun. To solve issues with this you could remove the http part and Wordpress will/should use https instead. Because the rest of your website is working correctly I assume that further settings are correct and will do their job as wished. add_filter('the_content','wpse_217012',1000,1); ...


1

It's not a tab but you might be able to get started with an upload button. Check out pre-upload-ui and some actions that follow. Namely pre-plupload-upload-ui and post-upload-ui. This will add a couple buttons to the 'Upload Files' tab and to 'Media > Add New'. BUTTONS add_action( 'pre-plupload-upload-ui', 'wpse_20160202_pre_plupload_upload_ui' ); ...


1

It looks like you use the Jetpack Plugin with Photon function (Wordpress.com photo CDN) https://jetpack.me/support/photon/ https://developer.wordpress.com/docs/photon/ You have to deactivate the Photon option in the Jetpack plugin settings.


0

gmazzap's solution inspired me to write a plugin to do this. You can now filter your media by Taxonomies and Terms with the Media Library Filter plugin.


0

It's possible to change the output of the label with jQuery but I'm not sure the best hook to do this besides admin_footer. // Collapse var $open = jQuery('.acf-expand-details > .is-open'), $open_icon = $open.find('span'); $open.html('MIN Details -->'); $open.prepend($open_icon); // Expand var $close = jQuery('.acf-expand-details > ...


1

This is just a shorter version of the answer using get_posts() and array_map()]. $image_ids = get_posts( array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_status' => 'inherit', 'posts_per_page' => - 1, 'fields' => 'ids', ) ); $images = array_map( ...


0

After some intensive Googling I discovered a couple of plugins for just this purpose. This is the one I used: Regenerate Thumbnails


2

Doing this on your own is actually quite a lot of work. For the sole purpose of regenerating your custom image sizes I would recommend using this plugin: AJAX Thumbnail Rebuild It allows you to loop through your Image Library and regenerate the different image sizes that you selected.



Top 50 recent answers are included