Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_comment_meta [ WordPress Function ]

add_comment_meta ( $comment_id, $meta_key, $meta_value, $unique = false )
Parameters:
  • (int) $comment_id Comment ID.
  • (string) $meta_key Metadata name.
  • (mixed) $meta_value Metadata value.
  • (bool) $unique Optional, default is false. Whether the same key should not be added.
Uses:
Links:
Returns:
  • (bool) False for failure. True for success.
Defined at:



Add meta data field to a comment.

Source


<?php
function add_comment_meta($comment_id$meta_key$meta_value$unique false) {
    return 
add_metadata('comment'$comment_id$meta_key$meta_value$unique);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics