How do we post the comment with the user authenticated in wordpress?
-
use this code :
https://microdev.ir/wp-json/wp/v2/comments?post=2808&content=newComment
but i want to post the comment with the user authenticated.
like this :
https://microdev.ir/wp-json/wp/v2/comments?post=2808&content=newComment&user=hamidreza&pass=aaaaaaaa
I have this token :{ "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9taWNyb2Rldi5pciIsImlhdCI6MTUwMjEwNTY5MSwibmJmIjoxNTAyMTA1NjkxLCJleHAiOjE1MDI3MTA0OTEsImRhdGEiOnsidXNlciI6eyJpZCI6IjMifX19.pc_yDRHvC2kbJeL3ALuaViHZKRjfJv3zRk_eqoLXsgY", "user_display_name": "hamidReza", "user_email": "[email protected]", "user_nicename": "hamidreza" }
- The topic ‘How do we post the comment with the user authenticated in wordpress?’ is closed to new replies.