backend_comments

Adds custom content to common comment listing page in backend.

Blog

Input (passed by reference)

$params array Last comments data array. Number of last comments is defined by app's configuration parameter 'comments_per_page'.
$params[%id%]['id'] int Comment ID.
$params[%id%]['post'] int Data array of post to which a comment was added.
$params[%id%]['user'] int Comment author data array.
… your plugin code …

Output

{$backend_comments.toolbar}
Custom HTML code to be displayed at the page top.
Blog

Plugin code example

PHP

public function backendComments($params)
{
    waLog::dump($params, 'blog/plugins/' . $this->id . '/backend-comments.log');

    return [
        'toolbar' => 'Custom HTML for comments-viewing page.',
    ];
}