Skip to:
Content

BuddyPress.org

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#7259 closed enhancement (fixed)

Allow new bp_core_directory_page_default_titles() to be filterable

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

Description

As suggested by @espellcaste
https://buddypress.trac.wordpress.org/ticket/6765#comment:30

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 3 years ago.
Adds apply_filter for default titles array.
7259-01.patch (1.1 KB) - added by hnla 3 years ago.
Update with docblock

Download all attachments as: .zip

Change History (6)

@hnla
3 years ago

Adds apply_filter for default titles array.

#1 @DJPaul
3 years ago

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

@hnla
3 years ago

Update with docblock

#2 @hnla
3 years ago

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

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

Great @hnla! Nice addition! ;)

Note: See TracTickets for help on using tickets.