Get new <img> src generated from wordpress ajax

I need the featured image src from “post-new.php” page after ajax response. Is this possible? Without publishing first.

 $('.button').on('mouseover', function(){
      img_src = $('.attachment-266x266').attr('src'):
 })

From This Ajax:

=> admin-ajax.php
=> add_action('wp_ajax_' . $_POST['action'], 'wp_ajax_' . str_replace( '-', '_', $_POST['action'] ), 1);

Read more here: Get new <img> src generated from wordpress ajax

Leave a Reply

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