wp_set_comment_status action is not raised
|Reported by:||Jehan||Owned by:||Jehan|
I have a hook on the action 'wp_set_comment_status' and I made tests of changing the status (from an approved comment, to spam, or to moderation pending, then back, etc.) and the action hook has never been activated (I put some log writing on my function, and I could check it was not triggered...).
Maybe I can do a workaround, with edit_comment (is it triggered when only the status changes as well?), but I haven't tested it yet. And anyway it may be slightly more annoying than the wp_set_comment_status.
Seen on 2.7.
Change History (25)
comment:6 josephscott — 5 years ago
- Keywords has-patch added
- Resolution fixed deleted
- Status changed from closed to reopened
comment:16 hakre — 5 years ago
- Keywords needs-test added; reporter-feedback removed
- Milestone changed from 2.8 to 2.9
- Version changed from 2.7 to 2.8.4