Tag Info

New answers tagged

-1

Well there is a function called wp_new_user_notification() which is pluggable you can alter it to stop user registration email: if ( ! function_exists( 'wp_new_user_notification' ) ) { function wp_new_user_notification( $user_id, $plaintext_pass = '' ) { return false; // because we don't need to send email. } }


0

This is what you need! A simple solution... http://codecanyon.net/item/gravity-forms-invitation-codes/11441758


3

Firstly, you need to add the following capabilities to the Doctor and Receptionist role: list_users edit_users create_users delete_users Now we can get to work with controlling which users they can create/edite/delete. Let's start with a "helper" function that will return which roles a user is allowed to edit: /** * Helper function get getting roles ...


1

There is a registration_errors filter, which native errors go through and which allows you to provide your own. Returning filled in WP_Error object in this filter will smoothly prevent user from being created. The one downside is that that filter is not passed much additional data — only login and email. You will probably have to fish your custom data out ...


0

The above answer by Aniket does solve the problem, however to save others the trouble, I'd like to say that it appears that woocommerce and BuddyPress cannot work together on a single website because apparently woocommerce disables the registration for WP


0

http://eatstaylovelondon.com/wp-login.php?action=register You can create a register now link which will redirect to the above page. Just adding "?action=register" at the end of the URL will do the work for you. You can Create a Register page too. Do Search how to display Register form.


0

You can use the same method as described in the link you mentioned, but simply use the created user ID and add 1000 so you get four digits. So user_id = 5 gets the meta number of 1005. add_action( 'user_register', 'my_on_user_register' ); function my_on_user_register( $user_id ) { $unique_id = 1000 + $user_id; update_user_meta( $user_id, ...



Top 50 recent answers are included