Skip to:
Content
Pages
Categories
Search
Top
Bottom

allowing html in xprofile?


  • takuya
    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)

  • 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)
  • The topic ‘allowing html in xprofile?’ is closed to new replies.
Skip to toolbar