Advertisement
geminilabs

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

Sep 11th, 2018 (edited)
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  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. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement