mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- 2.0.24 upgrade;
- wp nativve ajax handlers
This commit is contained in:
@@ -43,9 +43,10 @@ jQuery(document).ready(function() {
|
||||
metakey = 'profile_photo';
|
||||
|
||||
jQuery.ajax({
|
||||
url: um_scripts.delete_profile_photo,
|
||||
url: wp.ajax.settings.url,
|
||||
type: 'post',
|
||||
data: {
|
||||
action:'um_delete_profile_photo',
|
||||
metakey: metakey,
|
||||
user_id: user_id
|
||||
}
|
||||
@@ -65,9 +66,10 @@ jQuery(document).ready(function() {
|
||||
metakey = 'cover_photo';
|
||||
|
||||
jQuery.ajax({
|
||||
url: um_scripts.delete_cover_photo,
|
||||
url: wp.ajax.settings.url,
|
||||
type: 'post',
|
||||
data: {
|
||||
action: 'um_delete_cover_photo',
|
||||
metakey: metakey,
|
||||
user_id: user_id
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user