PHP validation and error messages in user profiles
If you fail to enter an email it will say “ERROR: Please enter an e-mail address.” after you have submitted the form. I want something like that.
I have tried:
$myErrors = new WP_Error();
$myErrors->add(‘id_error’, __(‘Test error.’,”"));
bbp_add_error( ‘bbp_steamid_invalid’, __( ‘ERROR: The ID you entered is invalid.’, ‘bbpress’ ) );
I am not at all familiar with error handling in both WordPress and bbPress however I feel it is a must.
Any help would be must appreciated.
You must be logged in to reply to this topic.