Skip to:

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5917 closed enhancement (fixed)

Missing Hooks Profile Fields -> Add Field

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


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

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

#1 @svenl77
9 years ago

  • Component changed from Core to XProfile

#2 @boonebgorges
9 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.

9 years ago

Add Hooks to Profile Fields -> Add Field

#3 @svenl77
9 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
9 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
9 years ago

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