Files needed: 1. **src/admin/assets/js/script.js** - This file contains the JS with AJAX call function 2. **src/admin/inc/qc-load-xml.php** - File that AJAX will call In the function `set_page_section` from file 1: - [ ] Change the post type to GET instead of POST. - [ ] Send slug details in url instead of data. In file 2: - [ ] change `$_POST['slug]` to `$_GET['slug']`
Files needed:
In the function
set_page_sectionfrom file 1:In file 2:
$_POST['slug]to$_GET['slug']