Skip to content

Change AJAX post request to get  #13

@beumerr

Description

@beumerr

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']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions