WordPress select and crop in plugin

I needs to upload images in my plugin and use wp.media for this task.
According to https://codex.wordpress.org/Javascript_Reference/wp.media

Its work, but I needs to have “Select and Crop” option in media library after upload my image with custom size.

Read More

I was see this in default theme in appearence custom header image, but can’t understand how I can use this in my plugin with wp.media js?

Related posts

2 comments

Comments are closed.