products_reviews

Adds extra content to product reviews list in backend, allows to modify properties of displayed reviews.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['reviews'] array Displayed reviews.
… your plugin code …

Output

{$products_reviews.%plugin_id%}

Portion of HTML code to be added below the list of product reviews.

Shop-Script

Plugin code example

PHP

public function productsReviews($params)
{
    return '<p class="bold red">' . _wp('Be polite when responding to customer reviews!') . '</p>';
}