The EDD Reviews plugin lets users attach ratings and reviews to Easy Digital Downloads (EDD) products. With the following steps, you can use FacetWP to filter by average rating.

Create the facet

The first step is to create a new facet.

  • Enter Rating as the Label (name = “rating”).
  • We recommend either Slider or Star Rating as the facet type.
  • Choose Post Type as the Data source.

Add the integration code

The following code goes into your (child) theme’s functions.php or into our Custom Hooks add-on.

function fwp_edd_average_rating( $params, $class ) {
    if ( 'rating' == $params['facet_name'] ) {
        global $post;

Finally, hit the re-index button. That’s it!

See also