Title: Custom Error Message
Last modified: October 11, 2020

---

# Custom Error Message

 *  [backpackingseries](https://wordpress.org/support/users/backpackingseries/)
 * (@backpackingseries)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/custom-error-message-14/)
 * Hi Support,
 * I am creating a WooCommerce site with WordPress user registration disabled. Customer
   accounts are created automatically during WooCommerce Checkout process but the
   site is not open for other WordPress roles (such as subscribers, contributors,
   editors, etc.).
 * When a customer account is created automatically during WooCommerce checkout,
   an Auth0 snippet ([found here](https://github.com/joshcanhelp/auth0-wp-test/blob/master/inc/hooks-woocommerce.php))
   creates a related Auth0 user account too. Now, when someone, not a customer, 
   tries to login they get the following error message –
 * > There was a problem with your log in: Could not create user. The registration
   > process is not available. Please contact your site’s administrator. [error 
   > code: unknown]
 * This is expected since signups are disallowed in WordPress. My question is there
   a way to customize this error message to say
 * > only verified customer can login
 * ?
 * If so, could someone please guide how to do so when using the Universal Login(
   not embedded) option?
 * Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Josh C](https://wordpress.org/support/users/auth0josh/)
 * (@auth0josh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/custom-error-message-14/#post-13544966)
 * Apologies for the delay here … what you might try is the `gettext` hook in WordPress
   that lets you modified output strings:
 * [https://developer.wordpress.org/reference/hooks/gettext/](https://developer.wordpress.org/reference/hooks/gettext/)
 *  Thread Starter [backpackingseries](https://wordpress.org/support/users/backpackingseries/)
 * (@backpackingseries)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/custom-error-message-14/#post-13545297)
 * Thanks [@auth0josh](https://wordpress.org/support/users/auth0josh/) . I’ll have
   a look at this approach.
 * Kind regards,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Error Message’ is closed to new replies.

 * ![](https://ps.w.org/auth0/assets/icon-256x256.png?rev=3351758)
 * [Login by Auth0](https://wordpress.org/plugins/auth0/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auth0/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auth0/)
 * [Active Topics](https://wordpress.org/support/plugin/auth0/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auth0/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auth0/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [backpackingseries](https://wordpress.org/support/users/backpackingseries/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/custom-error-message-14/#post-13545297)
 * Status: not resolved