/** * Add meta data field to a term. * * @param int $term_id Post ID. * @param string $key Metadata name. * @param mixed $value Metadata value. * @param bool $unique Optional, default is false. Whether the same key should not be added. * @return bool False for failure. True for success. */ function fw_add_term_meta($term_id, $meta_key, $meta_value, $unique = false) { return fw_add_metadata('fw_term', $term_id, $meta_key, $meta_value, $unique); }
/** * Add meta data field to a comment. * * @param int $comment_id Comment ID. * @param string $meta_key Metadata name. * @param mixed $meta_value Metadata value. * @param bool $unique Optional, default is false. Whether the same key should not be added. * * @return int|bool Meta ID on success, false on failure. */ function fw_add_comment_meta($comment_id, $meta_key, $meta_value, $unique = false) { return fw_add_metadata('comment', $comment_id, $meta_key, $meta_value, $unique); }