Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create a new Extended Profile (xProfile) field type

  • @shmk

    Participant

    Hello,
    I can’t find in the codex infos on how to create a new Extend Profile (xProfile) field type (not a field but a field type; like Text, Dropdown, Checkbox…).

    Anyone could give me some hints about it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @venutius

    Moderator

    There’s a few plugins that add extra field types, for example – https://buddydev.com/plugins/bp-xprofile-custom-field-types/ I’d take a look at these and see how they do it?

    @shmk

    Participant

    Thanks for the link πŸ™‚

    By the way, really are there no official documentation about it? Someone have to search all the BuddyPress code (ora a third party plugin code) trying to understand how to do it? 😐

    @tenaciousblindgirl

    Participant

    >>By the way, really are there no official documentation about it? Someone have to search all the BuddyPress code (ora a third party plugin code) trying to understand how to do it? ????

    Hi ShMK,
    I’m in the same boat. I found a link on the BudDev site with a bunch of shortcodes. Hope this helps.

    https://buddydev.com/docs/buddypress-shortcodes/buddypress-blogs-list-shortcode/

    @shmk

    Participant

    Thanks for the link @tenaciousblindgirl but in this case more than shortcodes, we should need some specific hooks to attach our functions via add_filter or add_action.

    @venutius

    Moderator

    Possibly a good template plugin would be https://wordpress.org/plugins/bp-xprofile-rich-text-field/ it’s got the filters and actions you’d need. It’s not straightforward, you’d need to extend the BP xProfile Field Type class in order to have it as part of the xProfile field type collection by the looks of things. I agree it would be nice to have it documented but we have what we have. Maybe one of you can strip down one of these plugins and write it up for the rest of us?

    The other option is to ask either of the collection plugins to add your type to their collection?

    @tenaciousblindgirl

    Participant

    Ok-no prob. πŸ™‚

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar