WordPress Add New User – Send an Activation Email
If you add a new user via the backend a confirmation email is sent automatically, unless you check the skip checkbox. The new user shouldn’t appear in the UI until confirmed
If you add a new user via the backend a confirmation email is sent automatically, unless you check the skip checkbox. The new user shouldn’t appear in the UI until confirmed
If you are using that code by Rev Voodoo, you will need to edit that code, not try to hook into WordPress core code. The form in that link submits to itself, and handles its own post processing thus bypassing many core hooks. Some of the hooks you are trying to use aren’t going to … Read more
in your script, after you update the data use wp_logout() and wp_redirect() or wp_safe_redirect() wp_logout(); wp_redirect( home_url() ); exit;
Yeah, the multiple user under one account is not stock with WordPress. You would essentially have to reprogram a lot of stuff to get everything you are wanting, and hacking the core is a no-no, as all updates would just over-write it. So you wouldn’t be able to update it, or have a lot of … Read more
What about just targeting with CSS? tr.user-nickname-wrap { display: none; } Of course the fields will still be in the source but the CSS targeting will be faster than JS. You can load your WP Admin CSS this way: function wse_183286_profile_admin_css() { $screen_id = isset( get_current_screen()->id ) ? get_current_screen()->id : null; if ( ‘profile’ === … Read more
You can hide profile fields on the edit screen from everyone except site admins – therefore they can only be edited by site admins. They will still be visible on the public profile screen. You can get the field id by looking at the url in wp-admin when you edit that field, or just rolling … Read more
You could use the WP User Avatar plugin for this.
I solved it with my own effort. function bp_remove_nav_item() { global $bp; $current_user = wp_get_current_user(); $role_name = $current_user->roles[0]; if($role_name===’administrator’){ bp_core_remove_nav_item( ‘buddyblog’ ); } } add_action( ‘wp’, ‘bp_remove_nav_item’ ); This code delete blog menu for administrator.
WordPress does provide you with the ability to save meta data for users, so you could just store the agent’s user id in a meta field of his subscribers, like update_user_meta( $user_id, “agent”, $agent_id ). You can then query those users with the WP_User_Query’s meta_query, e.g. $agents_subscribers = new WP_User_Query( array( ‘meta_key’ => ‘agent’, ‘meta_value’ … Read more
Have you tried using BuddyPress? BuddyPress allows all these thing, and has many other features ( though things can be turned on and off if it’s too much )