custom hooks before a comment is updated/edited in the database

Does is possible to create a custom hook if a comment is updated/edited in database?

I want a hook something like this:

add_action(‘before_edit_comment’, ‘myfunction’);
function myfunction($comment_id, $comment_object){
// do something
}

Actually, I want to keep history if user edit/update a comment like facebook. Please give me your suggestion.

sorry, for my english

Read more here:: custom hooks before a comment is updated/edited in the database

Leave a Reply

Your email address will not be published. Required fields are marked *