You are currently viewing How to Remove Text Editor in Buddypress Profile Fields | Remove XProfile TinyMCE Rich Text Editor

How to Remove Text Editor in Buddypress Profile Fields | Remove XProfile TinyMCE Rich Text Editor

Are you looking like I was, for a solution for how to hide or remove the WordPress Text Editor that is part of the Buddypress X-Profile Fields? Or a simple and easy way to remove XProfile TinyMCE Rich Text Editor WYSIWYG (what you see is what you get) fields? The link above gave me solution in a fashion but was not what I was after.

Well, after trying various code from old posts to disable the rich text editor that comes with WordPress/Buddypress (which i have to say is usually fantastic) I discovered I could use the snippet below and add it into a new snippet (the great WordPress Snippet plugin). Thanks to the person who came up with this I am now graphical text editor is now hidden from front-end users and members only!

 

Code Snippet that removes from view the graphical text editor from members

/*———-*/
/* REMOVE rich text on xprofile text area
/*———-*/
function antipole_remove_rich_text( $field_id = null ) {
if ( ! $field_id ) {
$field_id = bp_get_the_profile_field_id( ‘3’ );
}

$field = xprofile_get_field( $field_id );

if ( $field ) {
$enabled = false;
}
}
add_filter( ‘bp_xprofile_is_richtext_enabled_for_field’, ‘antipole_remove_rich_text’ );


This help and advice article is about; how to hide the How to Remove TinyMCE Rich Text Editor in the text editor in Buddypress XProfile fields using a code snippet. How to disable