Modify the aggregateRating Property

If your theme or another 3rd party plugin provides custom fields (aka post meta) for aggregate ratings, you can hook the ‘wpsso_json_prop_https_schema_org_aggregaterating’ filter to modify the default values. Here’s an example using the ‘average_review’ and ‘count_review’ custom field names (aka post meta).

See the $mod variable documentation for more information on the $mod array and its elements.