Opened 13 years ago
Closed 11 years ago
#1764 closed enhancement (fixed)
Filter page title prefixes
Reported by: | jaredatch | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.4 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | API - Actions/Filters | Keywords: | has-patch |
Cc: | wordpress@…, nashwan.doaqan@… |
Description
Currently, bbPress sets the pages titles like:
Forum: The forum title here
Topic: The topic title here
with no easy way to remove the prefixes if desired. This is handled with bbp_title()
in bbp-common-template.php
.
Presently, it's handled by executing
$title = sprintf( __( 'Forum: %s', 'bbpress' ), bbp_get_forum_title() );
There are a few filters in place (bbp_raw_title
and bbp_title
) but as is would take quite a bit of elbow grease to remove prefixes that get put in place.
Ideally it would be nice if there were a few filters in place specifically for the "Singles" prefixes.
Attachments (3)
Change History (14)
#6
@
12 years ago
- Cc nashwan.doaqan@… added
I think this bug is not about the prefixes only, It's about the logic of bbPress title tag, Introducing a dozen of filters is not a smart solution, The developer should have the ability to change the title 'layout' not only the prefix..
Let's imagine someone what to change this title structure
%s\'s Profile
It's hard too, right?
#7
@
11 years ago
Changes in the second patch:
- Change the index 'layout' to 'format'.
- Add some missing page titles.
Added patch.
Introduced a couple of filters in the form of bbp_pre_title_*