user2679476
user2679476

Reputation: 419

Where does WooCommerce error message are located in source code (when wrong password is entered)

When a wrong password is entered in WooCommerce based website, it gives an error message like this :

Error: The password you entered for the email address [email protected] is incorrect.

I couldn't figure out where does this error message is written in the Woocommerce source code. I checked the source path here : https://github.com/woocommerce/woocommerce/tree/trunk/plugins/woocommerce/templates/notices

Also search with "wc_add_notice" in the full source, but that didn't help.
Anyone has idea ?

Thanks !!!

Upvotes: 0

Views: 367

Answers (1)

theboss_dev
theboss_dev

Reputation: 1198

it comes from WordPress itself and not WooCommerce. Specifically try looking in wp-includes/user.php.

Reference :- https://github.com/WordPress/WordPress/blob/master/wp-includes/user.php#L251

Upvotes: 1

Related Questions