How to display a public profile page for registered users with custom slug?

Every registered user can have profile, they don’t need to have posts. To change WordPress author’s profile permalink, paste the following code in your functions.php: function change_author_permalink_base() { global $wp_rewrite; $wp_rewrite->author_base = “user”; } add_filter( ‘init’, ‘change_author_permalink_base’ ); After pasting the code, visit Settings->Permalink Structure under your wordpress admin, to flush the rewrite rules. This … Read more

How to use tinyMCE for user “biographical info”?

I found a very helpful blog post which shows exactly how to accomplish what I am after with only three small changes to the user-edit.php page. First Change I had to add a class name to the <textarea> tag for the description. <textarea name=”description” id=”description” rows=”5″ cols=”30″ class=”CLASS_NAME_HERE”><?php echo esc_html($profileuser->description); ?> </textarea><br /> Second Change … Read more

How do you update user_email on the front end in WP 3.3?

You need to use wp_update_user() for the email, as it is not user-meta but core user data. The code should look something like this: $args = array( ‘ID’ => $current_user->id, ‘user_email’ => esc_attr( $_POST[‘user_email’] ) ); wp_update_user( $args ); Note: that’s untested, but it should work out of the box.

Removing “Website” Field from the contact info

Revisited and updated answer: We can’t use the user_contactmethods filter to remove the website wrapper, because this piece is hardcoded in the user-edit.php file and not part of the filterable user contacts loop, generated by: wp_get_user_contact_methods( $profileuser ) Hiding it with CSS The website row element now got it’s own .user-url-wrap class: <tr class=”user-url-wrap”> <th><label … Read more

Make display name unique

As far as I’m aware, all you can do is filter the display name via pre_user_display_name and check if it already exists. Unfortunately WP_User_Query doesn’t support querying by display_name, so we also have to add to the WHERE clause via pre_user_query. Additionally, there is no elegant way I can think of to handle the case … Read more

Remove Personal Options section from Profile

This should do the trick // removes the `profile.php` admin color scheme options remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ ); if ( ! function_exists( ‘cor_remove_personal_options’ ) ) { /** * Removes the leftover ‘Visual Editor’, ‘Keyboard Shortcuts’ and ‘Toolbar’ options. */ function cor_remove_personal_options( $subject ) { $subject = preg_replace( ‘#<h3>Personal Options</h3>.+?/table>#s’, ”, $subject, 1 ); return $subject; } … Read more

Integrate WordPress and bbpress profiles?

Get redirection plugin to redirect the /profile.php to bbpress profile. Then there is a plugin called admin menu editor where you can completely remove the profile the admin menu (and other unwanted admin menu items). Or you can replace the wordpress profile with just email and password wordpress.org/extend/plugins/change-password-e-mail/

How to get a buddypress user profile link and a certain user profile field for the current post author?

For an author’s profile link, use bp_core_get_user_domain( $user_id ) to get the URL, and bp_core_get_userlink( $user_id ) to get an HTML link element, including display name. For the xprofile data, use xprofile_get_field_data( $field, $user_id ) $field can be either the name of the field (like ‘Biography’) or the numerical field id.

How to remove Biography from user profile admin page

There is no dedicated hook – user management is a low priority in WordPress. You have to use output buffering (yes, not nice). Here is a simple demonstration how this could be done: add_action( ‘personal_options’, array ( ‘T5_Hide_Profile_Bio_Box’, ‘start’ ) ); /** * Captures the part with the biobox in an output buffer and removes … Read more