WordPress media uploader javascript don't working

Really i very very tried. Other code page right why don’t working i can’t understanding. How i can working this code?

jQuery(document).ready( function($){

var mediaUploader;

$( '#upload-button' ).on('click', function(e) {
    e.preventDefault();
    if ( mediaUploader ){
        mediaUploader.open();
        return;
    }

    mediaUploader = wp.media.frames.file_frame = wp.media({
        title: 'Choose a Profile Picture',
        button: {
            text: 'Choose Picture'
        },
        multiple: false
    });

});

});

Hi,

Thanks for asking your question at Envato forum.

If you are a purchase then contact with your item author
How to contact any Item Author from Here

If they ask about purchase key then collect from Here

Still have any question open a Envato help ticket from Here

OR

If you are a Author my suggest hire someone from Envato studio
https://studio.envato.com/

Thanks

1 Like

You have answer here : https://stackoverflow.com/questions/53633485/wordpress-media-uploader-javascript-dont-working

2 Likes