How to prevent certain usernames from being registered?
Yes there are plugins that do this, for example, http://wordpress.org/extend/plugins/restrict-usernames/
Yes there are plugins that do this, for example, http://wordpress.org/extend/plugins/restrict-usernames/
Probably your local setup since Wamp does NOT come with mail server. But you can configure the STMP settings of PHP to point to another server in your LAN which runs an SMTP server, or to the SMTP server of your ISP. this thread has an example of how to set it up: http://www.wampserver.com/phorum/read.php?2,31302,70969
You can use this: wp_new_user_notification( $user_id, $random_password);
What you are best off doing is hooking into user_register and from there updating the user options you want them set to. Below is an example of disabling the admin bar for new users: add_action(“user_register”, “sc_set_user_admin_bar_false_by_default”, 10, 1); function sc_set_user_admin_bar_false_by_default($user_id) { update_user_meta( $user_id, ‘show_admin_bar_front’, ‘false’ ); update_user_meta( $user_id, ‘show_admin_bar_admin’, ‘false’ ); }
You can also take a look on Profile Builder Plugin, that allows you to customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user profile or register new users (front-end user registration). You can add custom fields to your registration form and customize … Read more
This code should make it impossible to add a new user, as long as it is being added with wp_insert_user(). add_filter( ‘pre_user_login’, ‘__return_false’ ); That filter is applied to the user’s login name before it is saved. If the result is empty, the user isn’t added. This will make it so the login will always … Read more
Haven’t really tested this, but WP actually uses this filter if you check the “noconfirmation” box, except that it does so only for super_admins, like you said: add_filter( ‘wpmu_signup_user_notification’, ‘__return_false’ );
You can check it very easily with the help of get_option. Here is a simple code for checking if user registration is allowed. if ( get_option( ‘users_can_register’ ) ) { // Your custom code or message to display if user registration is allowed. } get_option( ‘users_can_register’ ) returns boolean true (1) or false (0).
The REST API included in WordPress doesn’t actually have authentication built into it. If you do normal authentication in WordPress by logging in, then your browser will receive a set of cookies. If you send those cookies along with your request, then that will authenticate you to perform the actions in question. If you need … Read more
This is similar to Shawn H’s answer but is more effective for me. I already had registrations disabled, but bots still show up constantly to try anyway. My goal was to completely kill all requests to the registration form to avoid the load on my server (and mess in my logs) caused by bots trying … Read more