Advertisement
geminilabs

[site-reviews-notifications] hook to skip WooCommerce Review Reminder email

Feb 9th, 2024 (edited)
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. /**
  2.  * @return bool  true to send the email, false to skip the email
  3.  */
  4. add_filter('site-reviews-notifications/product/reminder/skip', function (bool $bool, \WC_Order $order) {
  5.     // Your code here
  6.     return $bool;
  7. }, 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement