bbp_walker_dropdown_post_title
bbp_walker_dropdown_post_title
Appears in: bbpress.2.5.14, bbpress.2.6.0, bbpress.2.6.1, bbpress.2.6.11, bbpress.2.6.12, bbpress.2.6.2, bbpress.2.6.3, bbpress.2.6.4, bbpress.2.6.5, bbpress.2.6.6, bbpress.2.6.9
Hook Type: filter
Displaying hooks found in version: bbpress.2.6.9apply_filters('bbp_walker_dropdown_post_title') is found 2 times:
- /includes/common/classes.php line 237233234235236237238239240241242243
$output
.=
' value="'
. (int)
$object
->ID .
'"'
. selected(
$args
[
'selected'
],
$object
->ID, false );
}
$output
.=
'>'
;
$title
= apply_filters(
'bbp_walker_dropdown_post_title'
,
$object
->post_title,
$output
,
$object
,
$depth
,
$args
);
$output
.=
$pad
. esc_html(
$title
);
$output
.=
"</option>\n"
;
}
}
/**
- /includes/common/classes.php line 494491492493494495496497498499500
// Determine reply title (either post_title, or excerpt of post_content)
$title
= !
empty
(
$object
->post_title ) ?
$object
->post_title : wp_html_excerpt(
$object
->post_content, 10 );
$title
= sprintf( esc_html__(
'%1$s - %2$s'
,
'bbpress'
), (int)
$object
->ID,
$title
);
$title
= apply_filters(
'bbp_walker_dropdown_post_title'
,
$title
,
$output
,
$object
,
$depth
,
$args
);
// Attributes
$class
=
'level-'
. (int)
$depth
;
$value
= (int)
$object
->ID;
// Start an output buffer to make late escaping easier