mnhpias
Forum Replies Created
-
I have logged in as adminitrator, still same problem.
I have reset the code first.
Then I checked on , “Generate SSL Certificate for both www & non-www version of domain”
it shows: “Authentication failure! Please try again”
I’ve checked the cname record using, MX lookup , it shows cname record has been published.
How to solve this?
I tried this by trial and error , and it worked. I couldn’t understand this code proeprly , please someone explain me .
add_action('um_custom_field_validation_ff_exist','um_custom_field_validation_ff_exist', 10, 3); function um_custom_field_validation_ff_exist( $key, $array, $args ) { global $ultimatemember; if ( (isset( $args['username'] ) && username_exists( $args['username'] ) == false && email_exists( $args['username'] ) == false ) ) { $ultimatemember->classes['form']->add_error($key, 'No Freedom Fighter account has been found with this username or email'); //$ultimatemember->classes['form']->add_error($args['username'], __('Enter a valid 8-number serial please') ); //$ultimatemember->classes['form']->add_error('ff_exist','No Freedom Fighter account has been found with this email 2'); } }
I iserted this function in function.php of my theme . Then in register form , I put “ff_exist” in custom validation of ” Username or E-mail of Freedom Fighter ” , I found that metakey of this is “username” , hence I had used $args[‘username’] for checking .
1. But I dont understand what is $key , and $array here ?
2. why “//$ultimatemember->classes[‘form’]->add_error(‘ff_exist’,’No Freedom Fighter account has been found with this email 2′);” didn’t work it ? why I couldn’t use ” ff_exist ” instead of “$key” ?