Sanitizing existing media library paths and page links from foreign characters
just a guess: maybe a thumbnail regenerator plugin will work in combination your sanitize plugin. like this regenerate-thumbnails or this force-regenerate-thumbnails
just a guess: maybe a thumbnail regenerator plugin will work in combination your sanitize plugin. like this regenerate-thumbnails or this force-regenerate-thumbnails
I suggest you to make updates on your web-server instead of WordPress. You can set mime type for mp4 files to application/octet-stream. Using .htaccess (Apache): AddType application/octet-stream .mp4 For nginx check documentation If you need to change mp4 mime type on upload, you can use this hook: add_filter(‘upload_mimes’, ‘wpse_320375_remove_mime_types’); function wpse_320375_remove_mime_types($mimes){ $mimes[‘mp4’] = ‘application/octet-stream’; }
How to upload 3 attachments to current post?
Replace all links before the installation of the SSL (you can update the links via SQL) How to mass update links Your wordpress should throw out https:// links now after the installation of the SSL certificate. This problem is due to wordpress decision to insert full links when inserting media through the editor.
I found what I wanted: https://github.com/humanmade/network-media-library Its works with the current release of WordPress(5.1) at the time of this post, but is not found in WordPress official plugin list. Alternative plugins with similar functionality at listed at the bottom of that page.
Currently I’ve achieved a somewhat acceptable solution by using the do_shortcode_tag filter as mentioned in this answer, and using get_post_meta to fetch the value, as mentioned in this answer. There are (at least!) two caveats, however: The id in do_shortcode_tag‘s $attr isn’t the attachment post ID, but rather the CSS id from the original shortcode. … Read more
What I did was to get media folder and save there the cropped image. After that update meta data: $imageToCropPath= get_attached_file($attachmentId); // Get file path to the image that will be cropped $img = imageCreateFromJpeg($imageToCropPath); $croppedImage = imagecrop($img, [‘x’ => $cropX, ‘y’ => $cropY, ‘width’ => $cropWidth, ‘height’ => $cropHeight]); $uniqueId = md5(uniqid()); // Create … Read more
After migrating media library is not showing thumbnails
Media Library: Remove replace images of selected author
How to manually set an attachment in a post?