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


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: