WP ULike Pro

Product details

Q: Using REST API: Posting a Dislike vote registers it as a Like, whereas using PUT correctly records the Dislike.

Hello WP ULike team,
I’m using the WP ULike Pro REST API to submit votes. When creating a new “Dislike” vote via POST to /wp-json/wp-ulike-pro/v1/vote, the plugin incorrectly registers it as a Like (or “unlike”). Updating that same vote with PUT correctly logs the Dislike. This prevents first‑time Dislike votes from being recorded properly via the API.

Whenever I send a POST request to /wp-json/wp-ulike-pro/v1/vote with:
{
"item_id": 90363,
"user_id": 89,
"type": "post",
"status": "Dislike"
}
the vote is logged as a Like (or “unlike”) instead of a Dislike. However, sending the identical payload via PUT updates it correctly to a Dislike.
Is this a known issue? What’s the recommended way to create a new Dislike vote via the API?

Thanks for your help!

tim822Mar 26, 2025
Share
Helpful?
Log in to join the conversation
Related questions
View product details