Created
April 27, 2016 13:14
-
-
Save mateusneves/48c77250018ebaa3335dadc8a815a430 to your computer and use it in GitHub Desktop.
Buddupress remove rich text from profile text area field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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