Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Allow HTML in xProfile Field Description Boxes


  • romanzy
    Participant

    @romanzy

    I want to use Internal Links (or shortcodes) inside the xProfile Field Description boxes, but all HTML is stripped out.

    I do not want to allow HTML in the xProfile fields itself, but only in the field description boxes so that I can add better user information with, for example, URL-links to help pages that describe the input profile fields.

    Someone able to help me with a snippet for this?

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Moderator

    @danbp

    Hi @romanzy,

    Give this a try. Add snippet to bp-custom.php

    function descrition_field_remove_html_filter() {
    	remove_filter( 'bp_get_the_profile_field_description', 'wp_filter_kses' );
    }
    add_action( 'bp_init', 'descrition_field_remove_html_filter' );

    romanzy
    Participant

    @romanzy

    I wish I could hug you Danbp.

    You made my day. Thank you for helping me out so quickly, and for all the effort you do here.

    Your snipped works fine, like always!


    danbp
    Moderator

    @danbp

    Thanks, not always, but you’re welcome ! 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Allow HTML in xProfile Field Description Boxes’ is closed to new replies.
Skip to toolbar