User Following System

Here are some pointers: Why are you using output buffering in tb_get_follow_unfollow_links()? I see no reason this is needed. In tb_get_follow_unfollow_links() only echo 1 button. On page load use php to decide what classes and button text you have to set. With jQuery change the button when you get a successfull ajax return. Change the … Read more

WordPress 4.9.6 – IncludeMe & getAjax GET using wrong URL

If I run a curl command: curl ​https://theprepared.life/data/earthquakes-today.json I get back the json object correctly. So your server work properly. So unless from a different origin, when you running $.getJSON() call, you only need to submit data/earthquakes-today.json as the url, instead of the entire url, which caused the 404 error. $.getJSON(“data/earthquakes-today.json”, function(data) { // rest … Read more

How to send the checkbox value to email

First you need to add a class for all checkbox as having same id for multiple items is not recommended <input type=”checkbox” class=”new_class” id=’haet_mail_test_address’ name=”ckboxs[]” value=””.$emails[$i][“user_email’].”‘> Now we to change the way you are getting the values from checkbox Change var checkbox = $(‘#haet_mail_test_address’).val(); To var checkbox = $(“.new_class:checkbox:checked”).map(function(){ return $(this).val(); }).get(); console.log(checkbox); // check … Read more