Hi i am using the wordpress media uploder to upload images from frontend.its working fine. now i want to enable images croping function for this uploder. but i don’t know how to display wordpress edit image button on this.is it possible? Anyone please help me to do this.
My code for media uploder is:

<input type="hidden" value="" class="process_custom_images" id="process_custom_images">
<button class="button button_style set_custom_images"><span><i class="fa fa-upload" aria-hidden="true"></i></span><?php _e( 'Upload Image'); ?></button>
jQuery(document).ready(function() {
var $ = jQuery;
if ($('.set_custom_images').length > 0) {
    if ( typeof wp !== 'undefined' && wp.media && wp.media.editor) {
        $(document).on('click', '.set_custom_images', function(e) {
            var button = $(this);
            var id = button.prev();
            wp.media.editor.send.attachment = function(props, attachment) {
            return false;

Read more here: How to Display Image Edit Button on media uploder for non-admin users from frontend in wordpress?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: