function Disqus::moderate_post in Disqus 7
Delete a comment or mark it as spam (or not spam).
Parameters
$post_id: The Post ID.
$action: Name of action to be performed. Value can be 'spam', 'approve' or 'kill'.
Return value
Returns modified version.
File
- ./
disqus.php, line 282 - Provides the Disqus PHP API.
Class
- Disqus
- The Disqus PHP API.
Code
function moderate_post($post_id, $action) {
return $this
->call('create_post', array(
'post_id' => $post_id,
'action' => $action,
), TRUE);
}