geminilabs

[site-reviews] remove fields from discord notification

Jul 15th, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /**
  2.  * Removes the email and IP address from the discord notification.
  3.  * @return array
  4.  */
  5. add_filter('site-reviews/discord/fields', function (array $fields, $review) {
  6.     unset($fields['email']);
  7.     unset($fields['ip_address']);
  8.     return $fields;
  9. }, 10, 2);
Add Comment
Please, Sign In to add comment