Title: Hook to disallow disposable emails
Last modified: October 1, 2025

---

# Hook to disallow disposable emails

 *  [rick111](https://wordpress.org/support/users/rick111/)
 * (@rick111)
 * [6 months, 4 weeks ago](https://wordpress.org/support/topic/hook-to-disallow-disposable-emails/)
 * Is there a hook to disallow disposable emails from domains put in an array?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Al Rubyat](https://wordpress.org/support/users/rubyat13/)
 * (@rubyat13)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/hook-to-disallow-disposable-emails/#post-18773860)
 * Hi [@rick111](https://wordpress.org/support/users/rick111/),
 * To disallow specific email domains in **Subscribe2**, you can use the `s2_validate_email`
   filter hook. This hook allows you to perform custom validation on an email address
   before it is accepted into the subscription list.
 * By using this filter, you can check the email domain against your own array of
   disallowed domains and return `false` to block the subscription if a match is
   found.
 * While we don’t provide custom code implementation, you can find more information
   on using WordPress filters in the [official developer documentation](https://developer.wordpress.org/plugins/hooks/filters/).
 * I hope this points you in the right direction!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhook-to-disallow-disposable-emails%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Al Rubyat](https://wordpress.org/support/users/rubyat13/)
 * Last activity: [3 months, 3 weeks ago](https://wordpress.org/support/topic/hook-to-disallow-disposable-emails/#post-18773860)
 * Status: not resolved