Замените ссылку в JavaScript
window.location.replace("http://localhost/wordpress/dashboard/");
kinjal suryavanshi
window.location.replace("http://localhost/wordpress/dashboard/");