Any API for review/comment got published?

  • Posts: 175
  • Thank you received: 0
9 years 9 months ago #161867

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?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #161903

Hi,

You can use the trigger:

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.066 seconds
Powered by Kunena Forum