There are no pre-requisites in order for you to be able to implement this solution.
Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.
Need support with the snippet? We’re Here to Help You, Contact Us!
This snippet checks the billing email field upon the user clicking the place order button and if this email matches the email you have defined in this code, a custom error will appear, the cart is emptied, and the user will not be able to check out. In this example, we have let the user know their email is suspicious, their cart has been emptied, and to leave the website. This snippet is useful if you are finding the same email address is spamming your store with fake orders or maybe even a competitor trying to snoop around your store. If you’re finding you’re checkout is being spammed by bots, trying different cards for example, you should probably start with DNS. Start by rate limiting, country, and IP blocking.
Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.