I found out the new url is -> wp_ulike_params.ajax_url but upon using the new url, seems like on success, the response is empty. Any idea?
Plugin Author
Alimir
(@alimir)
@knivore
Do you use the old functions structure? Please check our new wp-ulike.js functionalities.
I’ve updated to this structure ->
$.ajax({
type:’POST’,
cache: false,
dataType: ‘json’,
url: wp_ulike_params.ajax_url,
data:{
action: ‘wp_ulike_process’,
id: 60,
type: “likeThisTopic”,
nonce: 0,
status: 4
},
success: function(response) {
console.log(response)
}
But the console log is showing me null pointer. Was wondering if i’ve missed out anything.
Plugin Author
Alimir
(@alimir)
@knivore
The value of 0 is not acceptable in nonce data. You’ve to use of the nonce data attribute.
why you don’t use of the default script?!
Plugin Author
Alimir
(@alimir)
You have also used static id & status values!!!!
The status & id was actually retrieved from on click. Just that i plaste it in here for convenience sake.
I would like to use the default script, but because i’m currently maintaining another person’s code base so i like to make minimal changes.
So i guess its the missing nonce value that is causing me issues then.