Skip to:

Opened 10 years ago

Closed 9 years ago

Last modified 6 years ago

#5949 closed enhancement (fixed)

BP XProfile Hooks Documentation

Reported by: tw2113's profile tw2113 Owned by: tw2113's profile tw2113
Milestone: 2.2 Priority: normal
Severity: normal Version:
Component: Core Keywords:


This ticket will be where all BP XProfile patches go for the Hooks Documentation.

Relevant files:

Change History (18)

#1 @DJPaul
10 years ago

  • Milestone changed from Awaiting Review to Future Release
  • Type changed from enhancement to task

Moving into Future Release; we can keep these here and move them into particular releases' milestones as we commit things (or work on them).

#2 @tw2113
9 years ago

In 9284:

Adding complete version number and hook docs to bp-xprofile-caps.php.

See #5949.

#3 @tw2113
9 years ago

In 9285:

Adding hooks documentation to bp-xprofile-actions.php.

See #5949

#4 @tw2113
9 years ago

In 9286:

Adding hooks documentation for bp-xprofile-activity.php.

See #5949

#5 @tw2113
9 years ago

In 9287:

Add hook docs and fix version numbers for bp-xprofile-cssjs.php and bp-xprofile-filters.php.

See #5949.

#6 @tw2113
9 years ago

In 9289:

Adding hook docs and 3-digit @since numbers to bp-xprofile-loader.php.

See #5949

#7 @tw2113
9 years ago

In 9290:

Add hooks docs to bp-xprofile-screens.php.

See #5949.

#8 @tw2113
9 years ago

How would we like to handle these action hooks?

do_action( bp_get_the_profile_field_errors_action() );

From the looks of it, it's technically a dynamic hook based on field IDs. From the example in the phpdoc block for bp_get_the_profile_field_errors_action, they look similar to bp_field_12_errors. with the number corresponding to the field.

Last edited 9 years ago by tw2113 (previous) (diff)

#9 @boonebgorges
9 years ago

My preference would be to leave the code as-is, and put the documentation as per usual right above the do_action() calls. In the documentation, explain that it's a dynamic hook, and explain how it's concatenated (like you've done here).

If, for some technical reason, this won't work with the parser, then we could start concatenating inline, and stop using bp_get_the_profile_field_errors_action() function in core.

#10 @tw2113
9 years ago

In 9298:

Adds hooks documentation for bp-xprofile-admin.php.

See #5949.

#11 @tw2113
9 years ago

In 9299:

Adds hooks documentation to bp-xprofile-template.php.

See #5949.

#12 @tw2113
9 years ago

In 9303:

Adds hooks documentation for bp-xprofile-functions.php.

See #5949.

#13 @tw2113
9 years ago

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

In 9304:

Adds hooks documentation to bp-xprofile-classes.php

Fixes #5949.

#14 @tw2113
9 years ago

  • Milestone changed from Future Release to 2.2

#15 @tw2113
9 years ago

In 9643:

Fixes double digit version numbers missed from hooks docs work.

See #5949.

#16 @tw2113
9 years ago

In 9790:

Adds hooks documentation for a field added in 2.3.0.

See #5949.

#17 @DJPaul
8 years ago

  • Type changed from task to enhancement

#18 @offereins
6 years ago

In 11866:

Docs: document hooks in BP_XProfile_ProfileData::save().

Adds missing hooks documentation for the 'before_save' filters applied to
the user_id, field_id, value, and last_updated details of profile field

Probably missed in [9304].

See #5949.

Note: See TracTickets for help on using tickets.