If you are trying to integrate with another plugin, you need to make sure that any fields utilize the same meta key. So any fields that you use/create with WP-Members should be create so that the meta key (option name) is the same as whatever the other plugin uses.
Thanks for your reply, but the problem seems to be that Wp-Customer Area override WP-Members form validation and user creation.
Unfortunatly I’ve no idea where to go in order to change this… Any advice?
Unfortunatly I’ve no idea where to go in order to change this… Any advice?
At this time, unfortunately, no – I’m not familiar with that plugin.
I’ve finally managed to get this working, simply by using the shortcode to display your registration form in a custom register page… kind of ashamed I didn’t think of this in the first place! ^^
Now I know this is not the same problem but to avoid creating more useless topics, I ask you here a couple more questions :
First I need to translate the notification email sent to the admin when someone register and its content doesn’t appear to be in the translation file.
And finally I want to disable the displaying of the login form after a successful registration, since I have enabled admin moderation, but I can’t find where to go in order to do so.
Can you help me with these?
First I need to translate the notification email sent to the admin when someone register and its content doesn’t appear to be in the translation file.
Since email content can be customized in the Emails tab, it is not static so it is not included in the translation template. If your site is a single language, just put your content into the Emails tab accordingly. If it is multiple languages, then you would need to filter the email when it is generated and provide translated content at that point. Use the wpmem_email_filter filter for that.
I want to disable the displaying of the login form after a successful registration, since I have enabled admin moderation, but I can’t find where to go in order to do so.
Use the wpmem_login_form filter to empty the HTML served for the form when the $action is “login” and the value of $wpmem->regchk is “success”. In other words,
add_filter( 'wpmem_login_form', 'my_login_form_filter', 10, 2 );
function my_login_form_filter( $form, $action ) {
global $wpmem;
if ( 'login' == $action && 'success' == $wpmem->regchk ) {
$form = '';
}
return $form;
}
Many thanks for your answers!
I’ve managed to get my project up and running with your help!
Last thing, the [fields]
shortcode doesn’t seems to get the translation of the default fields names (ie first name, last name, country). Any idea?