sequra_get_shopper_rating

Hook Filter

Allow changing the shopper rating.

Description

This filter allows set a rating for the shopper from 0 to 100.

ParameterTypeDescription
$ratingintThe shopper rating
$orderWC_OrderThe order or null

Changelog

VersionDescription
3.0.0Introduced

Usage Example

add_filter('sequra_get_shopper_rating', function($rating, $order){
  $rating = 100; // Modify the default value
  return $rating;
}, 10, 2);