Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. apply_filters( 'wppr_schema', $ld, $this );
  2.  
  3. add_filter( 'wppr_schema', 'myget_json_ld' );
  4.  
  5. $review_default = array(
  6. '@type' => 'Review',
  7. 'reviewRating' => array(
  8. '@type' => 'Rating',
  9. 'bestRating' => '10',
  10. 'worstRating' => '0',
  11. 'ratingValue' => number_format( ( $this->get_rating() / 10 ), 2 ),
  12. ),
  13. 'name' => $this->get_name(),
  14. 'reviewBody' => $this->get_content(),
  15. 'author' => array(
  16. '@type' => 'Person',
  17. 'name' => $this->get_author(),
  18. ),
  19. 'datePublished' => get_the_time( 'Y-m-d', $this->get_ID() ),
  20. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement