Advertisement
geminilabs

Untitled

Apr 27th, 2023 (edited)
1,177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. /**
  2.  * Removes the email and IP address from the Discord notification.
  3.  *
  4.  * @param array $fields
  5.  * @param \GeminiLabs\SiteReviews\Review $review
  6.  * @return array
  7.  */
  8. add_filter('site-reviews/discord/fields', function ($fields, $review) {
  9.     unset($fields['email']);
  10.     unset($fields['ip_address']);
  11.     return $fields;
  12. }, 10, 2);
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement