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.
Parameter | Type | Description |
---|---|---|
$rating | int | The shopper rating |
$order | WC_Order | The order or null |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced |
Usage Example
add_filter('sequra_get_shopper_rating', function($rating, $order){
$rating = 100; // Modify the default value
return $rating;
}, 10, 2);
Updated about 1 month ago