• Resolved cheonmu

    (@cheonmu)


    Hi,

    First, thank you for providing a useful plugin.

    I’m using review rating for POST. The rating system works perfectly,

    but would it be possible to apply structured data only to posts with an average rating of 2.5 or higher than 3?

    I want NONE to be appeared as SD to the posts with 3 points or less.

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi @cheonmu,

    this can be easily done with rmp_structured_data filter.

    
    function blazzdev_structured_data( $structuredData ) {
      if( (rmp_get_avg_rating() * 10 ) < 30) {
        return ''; 
      }
      return $structuredData;
    }
    
    add_filter( 'rmp_structured_data', 'blazzdev_structured_data' );
    

    Regards,
    Blaz

Viewing 1 replies (of 1 total)
  • The topic ‘About structured data’ is closed to new replies.