Method | Description | |
---|---|---|
act_add_comment ( ) | function add_comment adds a comment to a post, if the comment content is not NULL | |
add_comment ( mixed $post, string $name = null, string $email = null, string $url = null, string $content = null, array $extra = null ) | Add a comment to the site |
public act_add_comment ( ) |
public add_comment ( mixed $post, string $name = null, string $email = null, string $url = null, string $content = null, array $extra = null ) | ||
$post | mixed | A Post object instance or Post object id |
$name | string | The commenter's name |
string | The commenter's email address | |
$url | string | The commenter's website URL |
$content | string | The comment content |
$extra | array | An associative array of extra values that should be considered |