Its been 3 days now I am fighting to resolve the issue here:
An action hook where a comment meta is updated
I am pretty sure, even if I am a beginner, that the hook update_comment_meta
doesnt exist, and that it is not possible to use something like:
add_action( 'update_comment_meta', 'do_soemthing', 10, 4);
Any confirmations, or objections are highly welcomed.
Well, it’s a little bit complicated 😉
If you will search
update_comment_meta
hook, you won’t find it.But it exists 🙂
There is
update_comment_meta
function and it callsupdate_metadata
function with first param set tocomment
.This
update_metadata
function does something like this (meta.php line 149):where
$meta_type
is the first param of this function.So it will be
update_comment_meta
when this function is called byupdate_comment_meta
function (because$meta_type
is then equal to'comment'
).