- Posts: 175
- Thank you received: 0
Any API for review/comment got published?
12 years 3 months ago #161867
by veeco
Any API for review/comment got published? was created by veeco
Hello
is there any API to do something when a review is changed from unpublished to publish?
for example, i set the default system for comment is unpublished, after user post a comment, admin will see from backend and approve the comment, if it's approved then it will trigger the API to do/run function
any?
is there any API to do something when a review is changed from unpublished to publish?
for example, i set the default system for comment is unpublished, after user post a comment, admin will see from backend and approve the comment, if it's approved then it will trigger the API to do/run function
any?
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161903
by Xavier
Replied by Xavier on topic Any API for review/comment got published?
Hi,
You can use the trigger:
Don't forget to put check on "$app->isAdmin()" in order to do actions only for backend.
You can use the trigger:
Code:
onBeforeVoteUpdate( &$element, &$do, $currentElement )
Don't forget to put check on "$app->isAdmin()" in order to do actions only for backend.
Please Log in or Create an account to join the conversation.
Time to create page: 0.191 seconds