knivore
Forum Replies Created
-
Forum: Plugins
In reply to: [WP ULike – Like & Dislike Buttons for Engagement and Feedback] ulike_objThe 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.
Forum: Plugins
In reply to: [WP ULike – Like & Dislike Buttons for Engagement and Feedback] ulike_objI’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.
Forum: Plugins
In reply to: [WP ULike – Like & Dislike Buttons for Engagement and Feedback] ulike_objI 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?