Since: 2.0
save_comment
Save a comment and it’s meta
Function Definition
public function save_comment ( $comment_data, $comment_meta = null, $strict = false, $sanitized = false )
Source File: /pods/classes/PodsAPI.php
Parameters
Parameter | Type | Details |
---|---|---|
$comment_data | (array) | All comment data to be saved (using wp_insert_comment / wp_update_comment) |
$comment_meta | (array) | (optional) All meta to be saved (set value to null to delete) |
$strict | (bool) | (optional) Whether to delete previously saved meta not in $comment_meta |
$sanitized | (bool) | (optional) Will unsanitize the data, should be passed if the data is sanitized before sending. |
Returns
(int) Comment ID