add_comment_meta action-hookWP 3.1.0

Fires immediately before meta of a specific type is added.

This is one of the variants of the dynamic hook add_(meta_type)_meta


add_action( 'add_comment_meta', 'wp_kama_add_comment_meta_action', 10, 3 );

 * Function for `add_comment_meta` action-hook.
 * @param int    $object_id   ID of the object metadata is for.
 * @param string $meta_key    Metadata key.
 * @param mixed  $_meta_value Metadata value.
 * @return void
function wp_kama_add_comment_meta_action( $object_id, $meta_key, $_meta_value ){

	// action...
ID of the object metadata is for.
Metadata key.
Metadata value.


Since 3.1.0 Introduced.

Where the hook is called

wp-includes/meta.php 117
do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value );

Where the hook is used in WordPress

Usage not found.