SHARE
TWEET

[site-reviews] don't save the IP Address

geminilabs Sep 11th, 2018 (edited) 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Prevents the IP Address from being saved with the review
  3.  * Paste this code in your theme's functions.php file.
  4.  *
  5.  * @param array $review
  6.  * @return array
  7.  */
  8. add_filter( 'site-reviews/create/review-values', function( $review ) {
  9.     $review['ip_address'] = '';
  10.     return $review;
  11. });
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