I need to send a parameter to my plugin , this parameter is the path of that user's folder.
Variable example:
$folder = /clientes/id_1/
$folder = /clintes/id_2/
$folder = /clientes/id_3/
These folders are generated automatically, each client has its own, that's my problem, I need to send this variable with the folder path to my plugin save this in session but I have no idea how to do that.
I was trying to get an AJAX request, right to the root file of my plugin passing the variable $folder
by method GET
, but it is not working.
Note: I do not want to mess with the Woord / Woocommerce files, I need to reuse% s of the files themselves in order to keep Thema / WP updates.