Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Hooks?

  • @kipprsnak

    Member

    Hi,

    New to Buddypress here and I’m wondering if there are any hooks for the extended profile fields or is someone could tell me how to add a filter to them.

    All I can find right now are the functions that return the data. I have a plugin I want to use that needs to filter one particular profile field. I know how to get to the data, but I don’t really know how to add the filter since I don’t see any “hooks” exactly.

    Also, does anyone know off the top of their head if wordpress profile fields are the ones bp is using or are they separate?

    Thanks so much and sorry for the newbie question.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @boonebgorges

    Keymaster

    Download this plugin and check out the code: https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/ It will show you the basic method I used to modify specific xprofile fields. Short version: you can filter the output of xprofile fields in general, and then you use a conditional to detect the name of the profile field that you want. Not enormously elegant, but hopefully that code will get you part of the way there.

    @kipprsnak

    Member

    cool! Thanks so much for your quick reply. I’ll take a look today!

    @kipprsnak

    Member

    IT WORKED!!! Thank you SOOOOO much!!

    @boonebgorges

    Keymaster

    Yeah! Glad you figured it out, @kipprsnak

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Profile Hooks?’ is closed to new replies.
Skip to toolbar