开发者

Wordpress Comment status changing hook

开发者 https://www.devze.com 2023-03-20 05:18 出处:网络
Is the开发者_运维技巧re anybody who knows a hook or a filter that might help by triggering a function when the administrator aprooves a comment? I\'ve made a lot of researches, but nothiing comes out.

Is the开发者_运维技巧re anybody who knows a hook or a filter that might help by triggering a function when the administrator aprooves a comment? I've made a lot of researches, but nothiing comes out.

I am working on a plugin snd something like that will become crucial. Thank you so much.


Look at the hook comment_{$old_status}_to_{$new_status}

It's in file /wp-includes/comment.php (http://svn.automattic.com/wordpress/tags/3.2/wp-includes/comment.php)

Search for the line

do_action("comment_{$old_status}_to_{$new_status}", $comment);
0

精彩评论

暂无评论...
验证码 换一张
取 消