• Resolved cheonmu

    (@cheonmu)


    Hi,

    About a year ago, i asked about below

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

    I got the answer like below code

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

    But is this code still works?

    Thank you.

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