Un motore di ricerca WordPress per sviluppatori e autori di temi



add_comment_meta ›

Da2.9.0
Deprecaton/a
add_comment_meta ( $comment_id, $meta_key, $meta_value, $unique = false )
Parametri: (4)
  • (int) $comment_id Comment ID.
    Richiesto:
  • (string) $meta_key Metadata name.
    Richiesto:
  • (mixed) $meta_value Metadata value.
    Richiesto:
  • (bool) $unique Optional, default is false. Whether the same key should not be added.
    Richiesto: No
    Default: false
Links:
Ritorna:
  • (int|bool) Meta ID on success, false on failure.
Definito a:
Codex:

Add meta data field to a comment.



Sorgenti

function add_comment_meta( $comment_id, $meta_key, $meta_value, $unique = false ) {
	return add_metadata( 'comment', $comment_id, $meta_key, $meta_value, $unique );
}