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

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.