Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5917 closed enhancement (fixed)

Missing Hooks Profile Fields -> Add Field

Reported by: svenl77 Owned by: boonebgorges
Milestone: 2.2 Priority: normal
Severity: normal Version:
Component: Extended Profile Keywords: needs-patch good-first-bug
Cc:

Description

I would like to hook a custom meta box into the Add Field Screen.

Right now its not possible. I have attached a screenshot

Wer have:

xprofile_field_before_submitbox --> to hook before the submitbox
xprofile_field_after_submitbox --> to hook after the submitbox
xprofile_field_additional_options --> to add additionals options

I would like to add:

xprofile_field_after_sidebarbox --> to hook after the sidebar box
xprofile_field_after_contentbox --> to hook after the content meta box

https://photos-5.dropbox.com/t/1/AADh1h_yoTsmVvgtQlEmPjOEw2QggAiG8JU2HCHM5-DziA/12/16188696/png/1024x768/3/1412006400/0/2/ProfileFieldsBuddyPressTrac.png/w_lEDGsAGVwibFVJeAudOiHB7K5Spst1JU5SZSuAh90

Attachments (1)

bp-xprofile-classes.php.patch (700 bytes) - added by svenl77 6 years ago.
Add Hooks to Profile Fields -> Add Field

Download all attachments as: .zip

Change History (6)

#1 @svenl77
6 years ago

  • Component changed from Core to XProfile

#2 @boonebgorges
6 years ago

  • Keywords needs-patch good-first-bug added

I would love-love-love to have this whole admin area rewritten so that we're actually using the add_meta_box() API, instead of faking it by using the same markup. Then your issue would go away, because you could just add your own meta boxes. Of course, this is a big job :)

In the meantime, sure, let's create the hooks. svenl77, if you can provide a patch, we'll put this in for 2.2.

@svenl77
6 years ago

Add Hooks to Profile Fields -> Add Field

#3 @svenl77
6 years ago

Hi boonebgorges,
sorry for the delay, I was hold back in a other project and didn't find the time. Not that the changes where time intensive, but I needed my time to remember svn and how to create a patch ;)
Let me know if its not a working patch and I will correct it.
Thanks, Sven

#4 @boonebgorges
6 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 9075:

Hooks for xprofile Add Field screen.

Until this screen uses the add_meta_box() API, these hooks will allow plugin
devs to add custom items to the xprofile field creation process.

Props svenl77.
Fixes #5917.

#5 @DJPaul
6 years ago

  • Milestone changed from Awaiting Review to 2.2
Note: See TracTickets for help on using tickets.