Hello. I made a WordPress plugin with a JQuery-AJAX/JSON code in a php file like this:
$(document).ready(function(){
$.post(“/wp-content/plugins/SLMS/UserRecord.php”,
{
saveUserBtn: “Save”, FName: fname, LName: lname, UNumber: unumber, address: address, contact: contact, email: email
},
function(data, status){
document.getElementById(‘userr-page-notice’).innerHTML = data;
if(data.includes(“New record saved.”)) {
document.getElementById(“userRecord”).reset();
}
});
});
/** end of code */
I also notice that any user can view my javascript code with their own browser. I also noticed tha