Method | Description | |
---|---|---|
commentsDelete ( string $id ) | Delete comment(s). | |
commentsGet ( string $status = null, integer $limit = 30, integer $offset ) : array | Get the comments | |
commentsGetById ( integer $id ) : array | Get a single comment | |
commentsUpdate ( integer $id, string $status = null, string $text = null, string $authorName = null, string $authorEmail = null, string $authorWebsite = null ) : null | boolean | Update a comment | |
commentsUpdateStatus ( array $id, string $status ) | Update the status for multiple comments at once. |
public static commentsDelete ( string $id ) | ||
$id | string | The id/ids of the comment(s) to update. |
public static commentsGetById ( integer $id ) : array | ||
$id | integer | The id of the comment. |
return | array |
public static commentsUpdate ( integer $id, string $status = null, string $text = null, string $authorName = null, string $authorEmail = null, string $authorWebsite = null ) : null | boolean | ||
$id | integer | The id of the comment. |
$status | string | The new status for the comment. Possible values are: published, moderation, spam. |
$text | string | The new text for the comment. |
$authorName | string | The new author for the comment. |
$authorEmail | string | The new email for the comment. |
$authorWebsite | string | The new website for the comment. |
return | null | boolean |
public static commentsUpdateStatus ( array $id, string $status ) | ||
$id | array | The id/ids of the comment(s) to update. |
$status | string | The new status for the comment. Possible values are: published, moderation, spam. |