Problem with AJAX request displaying 0

I’m working on a posts filter via AJAX. All works well but I’ve an “0” inserted at the end of my response. Similar questions says to use die(); at the end of the callback. It works but causes a problem with the final rendering. Inside my functions.php : add_action(‘wp_ajax_mon_action’, ‘mon_action’); add_action(‘wp_ajax_nopriv_mon_action’, ‘mon_action’); function mon_action() {…

Details

Rsync files directories with different names

I am trying to rsync files from and directory “incoming” to a directory called “outgoing” ie. /testcopy/folder1/incoming/test1.txt to /testdest/folder1/outgoing/ Directory Source: /testcopy/folder1/incoming/test1.txt /testcopy/folder1/incoming/test2.txt /testcopy/folder2/incoming/test1.txt /testcopy/folder2/incoming/test2.txt /testcopy/folder3/incoming/test1.txt /testcopy/folder3/incoming/test2.txt Directory destination: /testdest/folder1/outgoing/ /testdest/folder2/outgoing/ /testdest/folder3/outgoing/ What I want the destination to look like: /testdest/folder1/outgoing/test1.txt /testdest/folder1/outoging/test2.txt /testdest/folder2/outgoing/test1.txt /testdest/folder2/outoging/test2.txt /testdest/folder3/outgoing/test1.txt /testdest/folder3/outgoing/test2.txt The rsync script I have tried: touch /testcopy/folder3/incoming/test4.txt What…

Details