Upload User Avatar from android to WordPress using Rest API
You can upload media through the REST API, but to associate it with a user you’ll need a plugin or your own custom REST Route. Duplicate of: How to change user avatar using REST API?
You can upload media through the REST API, but to associate it with a user you’ll need a plugin or your own custom REST Route. Duplicate of: How to change user avatar using REST API?
You could create a plugin for the editor to achieve that. In JS there’s the onpaste event. These would be the basic steps: listen for onpaste. Find the closest heading element up the tree from the target element being pasted into. Default to page/post title if no heading elements are found and then back to … Read more
You can add jquery .css() method jQuery(‘.image_class_name’).css(‘transform’,’rotate(-90deg)’); change the degree as you want.
UPDATED: I figured out the following by playing with the numbers in the php.ini in /wp-admin: The add upload page in the admin area seems to always display the lower value of either post_max_size and upload_max_filesize. In my case, post_max_size was lower than upload_max_filesize which is the reason for “Maximum size of files for uploads” … Read more
To serve a webP image instead of the original format using the original image URL, you could use a .htaccess redirect rules to redirect any request to the original image to the webP version. WebP Converter for Media Does a good job at this with files uploaded to WP Media Library.
GO LIVE UPDATE URLS Try out this plugin which has worked well for me in the past.
i do that with some line of code add this to function.php to change the uploaded file dir // change dir for anomaly images function example_Dir( $param ){ $param[‘path’] = ‘/home/yoursite/domains/yoursite.com/public_html/wp-content/uploads/example’; $param[‘url’] = ‘ https://yoursite.com/wp-content/uploads/example’; return $param; } here is the form : <form action=”” enctype=”multipart/form-data” method=”post” > <input type=”file” name=”file”> <input type=”submit”> </form> then … Read more
So i decided that for me, i can settle for changing an input field on the top.parent for it to be used with the native options. i used this for the function of the iframe tab: function media_upload_choosebackground_form() { media_upload_header(); ?> <h3 class=”media-title”>HTML Form</h3> <img src=”http://www.mimi.me/wp-content/themes/mimi.me_regular_sites/images/background-Green-stripes-thumb.jpg” style=”cursor:pointer; float:left; margin:10px 0 0 10px” id=”greenstripes” title=”Green Stripes” … Read more
The answer ended up being to copy that function and filter the results it returned. It’s hacky but until there are more hooks/filters available in that section of the core there’s no better way 🙁
This metabox class does exactly what you are after and so much more. wpalchemy-metaboxes