Rest API rename media
I’ve been able to upload images using the REST API but the names are wrong right now and I was thinking to go through all of the products I have and rename the images.
I’ve been able to upload images using the REST API but the names are wrong right now and I was thinking to go through all of the products I have and rename the images.
Is it possible to change the image size of the thumbnails in the new media uploader?
I’m making a shortcode function that collects data from WordPress media library
I’ve set up an options page for my CPT that contains the drag’n’drop upload area (just like Media → Add New). Basicly, I’ve copied all the relevant stuff from wp-admin/media-new.php and it works like charming.
First of all, I know there are many questions related to this question. But what the problem is that they are all related somehow to jquery.
I tried to get random media id from wordpress media gallery using this:
This answer describes a hack in which it is possible to upload new media to an “old” folder like 2012/12. That hack no longer seems to work in recent WP versions. Meanwhile, all the plugins I can find for media/folder management seem to want to create an entirely new folder hierarchy, and bypass the native WordPress year/month system completely.
The question: hello i want to use wordpress media library . i want to user see the library when click on button i made and choose a picture and i get a link of picture wich user choosed . actualy i want to learn how we should use this library <button type=”button” class=”button button-primary”>choose picture</button> … Read more
I’m trying to include two scripts, wp_media and my personal when I stay in my plugin options page, but WordPress don’t include it. Someone help?
The question: I’m uploading a different mp3 file to each post as an attachment and using wp_get_attachment_metadata() to print the duration of the mp3 file. Sometimes the response from wp_get_attachment_metadata() does not contain the file length and when I inspect the mp3s inside the Media Library, some of them display a length and some do … Read more