Skip to:

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7259 closed enhancement (fixed)

Allow new bp_core_directory_page_default_titles() to be filterable

Reported by: hnla's profile hnla Owned by: hnla's profile hnla
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch 2nd-opinion


As suggested by @espellcaste

It might be useful to be able to filter these new page title defaults used to furnish the page headings when we create the BP directory pages and described in:
bp-core-functions.php L:696 - bp_core_get_directory_page_default_titles()

Adding this will round off the overall update to directory names begun in #6765
as long as a lead dev will just take a glance and ok it.

Attachments (2)

7259.patch (983 bytes) - added by hnla 8 years ago.
Adds apply_filter for default titles array.
7259-01.patch (1.1 KB) - added by hnla 8 years ago.
Update with docblock

Download all attachments as: .zip

Change History (6)

8 years ago

Adds apply_filter for default titles array.

#1 @DJPaul
8 years ago

The filter needs the PHPDoc block added, as well as spaces inside the brackets per our standards.

8 years ago

Update with docblock

#2 @hnla
8 years ago

  • Owner set to hnla
  • Status changed from new to accepted

#3 @hnla
8 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 11106:

Filter bp_core_directory_page_default_title array

Commit adds ability to filter the default page names array in bp_core_directory_page_default_title() before returning.

Fixes #7259 Props espellcaste

#4 @espellcaste
8 years ago

Great @hnla! Nice addition! ;)

Note: See TracTickets for help on using tickets.