On one of my sites a file is shown as 404 but the file IS there October 16, 2022 by Tarik Billa See the Codex page on using AJAX in Plugins properly and use wp_localize_script to pass data from php to javascript.