bbp_remove_view_all( string $original_link = '' )

Remove ‘view=all’ from query string

Description

Parameters

$original_link

(string) (Optional) Original Link to be modified

Default value: ''

Return

(string) The link with 'view=all' appended if necessary

Source

File: bp-forums/common/functions.php

function bbp_remove_view_all( $original_link = '' ) {
	return apply_filters( 'bbp_add_view_all', remove_query_arg( 'view', $original_link ), $original_link );
}

Changelog

Changelog
Version Description
bbPress (r3325) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.