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)


Top ↑

Return Return

(string)


Top ↑

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  . '/';
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.