Skip to content

Instantly share code, notes, and snippets.

@mateusneves
Created April 27, 2016 13:14
Show Gist options
  • Save mateusneves/48c77250018ebaa3335dadc8a815a430 to your computer and use it in GitHub Desktop.
Save mateusneves/48c77250018ebaa3335dadc8a815a430 to your computer and use it in GitHub Desktop.
Buddupress remove rich text from profile text area field
// O arquivo bp-custom deve estar localizado na pasta plugins
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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment