Skip to:
Content
Pages
Categories
Search
Top
Bottom

allowing html in xprofile?

  • Avatar of wpmubp.org
    wpmubp
    Participant

    @takuya

    I’ve been testing bp at local, trying to allow more html tags in xprofile fields.

    So far in bp-custom.php I’ve added the followings, but it seems nothing happens.

    remove_filter( ‘xprofile_get_field_data’, ‘wp_filter_kses’, 1 );

    What else is preventing html within xprofile fields?

Viewing 1 replies (of 1 total)
  • Avatar of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    You’ve got the right idea. However the filter doesn’t exist until bp fires up completely. bp-custom.php gets loaded before bp. Try this:

    function stuff_i_want_triggered_after_bp_loads(){

    remove_filter( ‘xprofile_get_field_data’, ‘wp_filter_kses’, 1 );

    }

    add_action(‘wp’, ‘stuff_i_want_triggered_after_bp_loads’);

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.