BBP_Forums_Group_Extension::map_reply_edit_url_to_group( string $url, int $reply_id )
Map a reply edit link to its group forum
Description Description
Parameters Parameters
- $url
-
(Required)
- $reply_id
-
(Required)
Return Return
(string)
Source Source
File: includes/extend/buddypress/groups.php
public function map_reply_edit_url_to_group( $url, $reply_id ) {
$new = $this->maybe_map_permalink_to_group( $reply_id );
if ( empty( $new ) ) {
return $url;
}
return trailingslashit( $new ) . bbpress()->edit_id . '/';
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |