set commenter cookie by program
-
I would like to know if it is possible to set WP commenters cookie programatically.
I have a WP site ‘origin’ where users need to log in to access content, and from there, they can access other WP sites I also manage but they don’t have a user account on it.
So, when they comment on these other sites, hosted on different domains, I would like them to be able to comment as guest, but without the need to enter their name and email.
In fact, these information would come from the ‘origin’ site, as url parameters added to the targeted page URL on the other sites, and when the page loads, if commenter cookie is not set, url parameters are read and commenter cookie is set using these parameters.
Please tell me if this is possible, and how. It sounds that WP sets commenter cookie with a hash in cookie name, and I don’t know how to do this.
- The topic ‘set commenter cookie by program’ is closed to new replies.