How to fetch data from database in cordova app with ajax in wordpress?
fetch data from database in cordova app with ajax in wordpress. Paste in funtion.php file. function fetch_cordova_message(){ if(function_exists(‘date_default_timezone_set’)) { date_default_timezone_set(“Asia/Kolkata”); } // then use the date functions, not the other