How do I select an image from Media Library in my plugin?
You should use wp.media to use the WordPress Media Manager dialog. First, you need to enqueue the scritps: // As you are dealing with plugin settings, // I assume you are in admin side add_action( ‘admin_enqueue_scripts’, ‘load_wp_media_files’ ); function load_wp_media_files( $page ) { // change to the $page where you want to enqueue the script … Read more