Is it possible to rename the "action" parameter used by Editor?

Is it possible to rename the "action" parameter used by Editor?

NettSiteNettSite Posts: 36Questions: 11Answers: 2

I am trying to integrate Datatables and Editor into a WordPress website using the "correct" WP AJAX approach. WP requires a unique "action" parameter to select a function to run, and Editor uses "action" to specify create, edit, etc. I would like Editor to use something else, e.g. "editor-action".

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Yes indeed - you can use the preSubmit event to modify the data that Editor sends to the server.

    If you are using the Editor PHP libraries, then you will need to modified the Editor.php file to use the modified variable name rather than the default.

    Regards,
    Allan

  • NettSiteNettSite Posts: 36Questions: 11Answers: 2

    Thanks, Alan, that's awesome.

    I am basically replacing the Editor PHP libraries with WordPress.

This discussion has been closed.