view_reviews

Triggered before returning an array of product reviews by {$wa->shop->reviews()} method.

Shop-Script

Input (passed by reference)

$reviews array Product reviews.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function viewReviews(&$reviews)
{
    shopMyPluginHelper::updateReviews($reviews);
}