Function Reference: geodir_comment_meta_row_action

Summary

Add the comment meta fields to the comments admin page.

Description

Adds rating stars below each comment of the WP Admin Dashboard -> Comments page.

Global Values

$comment
(object) (required) The comment object.

Default: None

Package

GeoDirectory

Parameters

$a
(array) (required) {
List of comment row actions. @type string $approve Current comment approve HTML link string. @type string $unapprove Current comment unapprove HTML link string. @type string $reply Current comment reply HTML link string. @type string $quickedit Current comment Quick Edit HTML link string. @type string $edit Current comment Edit HTML link string. @type string $spam Current comment Spam HTML link string. @type string $trash Current comment Trash HTML link string. }.

Default: None

Return Values

(mixed)
  • Comment row actions.

Change Log

Since: 1.0.0

Source File

geodir_comment_meta_row_action() is located in geodirectory-functions/comments_functions.php [Line: 32]

Source Code

function geodir_comment_meta_row_action($a)
{
    global $comment;

    $rating = geodir_get_commentoverall($comment->comment_ID);
    if ($rating != 0) {
        echo geodir_get_rating_stars($rating, $comment->comment_ID);
    }
    return $a;
}