Call my plugin’s function each time a comment is published or removed
-
Hi
I’m not sure which actions i have to add to my plugin for the following problem as there are 10+ actions for comments/trackbacks on the Action Reference Page:I want to call my “function A” every time a new comment or trackbach is actually added to a post (which means every possible situation where a comment that was not displayed before is now displayed, for example a completely new comment which was activated directly, a comment which was activated in the backend or whatever)
Additionally, i want to call my “function B” when a comment was removed (displayed before and now hidden/deleted)
which action hook(s) do I have to use for this?
thanks,
ScaraX
- The topic ‘Call my plugin’s function each time a comment is published or removed’ is closed to new replies.