Create Unique and Customized User ID for Website Members in WordPress
Create Unique and Customized User ID for Website Members in WordPress
Create Unique and Customized User ID for Website Members in WordPress
Don’t include jquery from any other source, it will create conflict. Bcoz jQuery is pre bundled in wordpress by default. For your question, add an id or class to the input element then add the datepicker based on the class. For example <input type=”text” class=”da_test” value=”” > <script type=”text/javascript”> $(window).load(function() { $(‘.da_test’).glDatePicker(); }); </script> This … Read more
You can use the user_register hook and then mail all your subscribers. Something like: add_action(‘user_register’,’notify_new_member’); function notify_new_member(){ global $wpdb; $usersarray = $wpdb->get_results(“SELECT user_email FROM $wpdb->users;”); $users = implode(“,”, $usersarray); mail($users, “New Member”, ‘A new member has just joined.’); }
Using the regex posted by Moaz (and adding capitals), we will need to hook into the registration_errors filter: // Restrict username registration to alphanumerics add_filter(‘registration_errors’, ‘limit_username_alphanumerics’, 10, 3); function limit_username_alphanumerics ($errors, $name) { if ( ! preg_match(‘/^[A-Za-z0-9]{3,16}$/’, $name) ){ $errors->add( ‘user_name’, __(‘<strong>ERROR</strong>: Username can only contain alphanumerics (A-Z 0-9)’,’CCooper’) ); } return $errors; }
You can assign roles to wordpress users (Contributor, Author, etc) and I’m pretty sure wordpress sends a “confirm user” email. If you want a whole different backend or user system that would be integrated in the theme, that’s no longer related to wordpress.
In the admin interface under Settings > General there is a field named E-mail Address. Unless you have a plugin managing your user registration separately, this should be the default email address for registration confirmations.
You must be using the plugin on local server. If you wants to receive e-mails after registration then first you have to upload your website on internet. Because any plugin that use to send email, doesn’t work in local server.
If I understand you correclty, you are essentially asking two questions. For one, you are looking for a solution for a customized registration- (login- / profile-) page. Also, you want to export data to .csv or .xls As for the first issue, I’d recommend taking a look at Jeff Farthing’s excellent Theme-My-Login plugin. As for … Read more
You should be using add_user_meta instead of update_user_meta: if (isset($_POST[‘billing_cpf’])) { add_user_meta($customer_id, ‘billing_cpf’, $POST[‘billing_cpf’], true); } As this will only add the meta if it does not already exist – no update. (This will prevent this field from being updatable – unless by you another way.) Note: normally you could use something like this to … Read more
There’s wp_register() which displays either a link to the registration or a login link. Then you got wp_loginout() that has either a login or logout link – depending on the login status of the user. Another thing you could do is just adding a wp_login_form(). You can also use the plain wp_login_url( $redirect ) to … Read more