title: WordPress admin-ajax.php file is not loading
body: <p>i try to make a live ajax search. </p>
  
  <p>I use this code in my functions.php : </p>
  
  <pre><code>function add_js_scripts() {
      wp_enqueue_script( 'script-wpm', get_stylesheet_directory_uri().'/js/script-wpm.js', array('jquery'), '1.0', true );
  
      wp_localize_script('script-wpm', 'ajaxurl', admin_url( 'admin-ajax.php' ) );
  }
  add_action('wp_enqueue_scripts', 'add_js_scripts');
  </code></pre>
  
  <p>My JS file is loaded, but can't see admin-ajax.php in the dev console of google chrome :</p>
  
  <p><a href="https://i.stack.imgur.com/PFQj5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PFQj5.png" alt="You can see my screenshot here"></a></p>
  
  <p>I don't know why it's not loading. Do you have an idea please? Thank you</p>