How check event jquery wp.media image selected before when click change image post?

I used to function :
var selection = wp.media.frame.state().get( “selection” );
selection.on( “selection:single”, function () {
});
But i only work when i chang select image. It conslo.log
If i repace page, click show poup manager image then image is checked to can not console.log

Read more here:: How check event jquery wp.media image selected before when click change image post?

Leave a Reply

Your email address will not be published. Required fields are marked *