Advertisement
geminilabs

[site-reviews] remove moderation links from discord notification

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