I would like to clone that code for another module called “reputation”.
This is what i done so far. But when i click update it actually updates points instead of reputation.
Here is the difference of two files.
I never worked with ajax. So I’m confused in that ajax part.
So can anyone tell me which lines responsible for database update?..
Thanks
/wp-admin/admin-ajax.php is doing the update with the parameters sent to it.
here’s the part of the code.
and here’s the code which sets the “points” variable:
it means get the value of
<input name="cp_manage_form_points">inside the submitted form.