Profile field group id outside of loop !important
-
Hi everyone, I have a little but of an urgent need. I need to determine what profile field group is currently displayed outside of the buddypress loop. Is this possible? Can I add some sort of global variable to my function to access this info? I need to display a notice dependent on the group id.
I am currently hooking into the “bp_after_profile_edit_content” action but only want to hook in if I am in the correct group. All I ever return is a 1 which is the default number returned by the bp_get_current_profile_group_id() function.
Thanks very, very much!
- The topic ‘Profile field group id outside of loop !important’ is closed to new replies.