SHARE
TWEET

Untitled

a guest Feb 21st, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top