This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BBP_Forums_Group_Extension::hide_super_sticky_admin_link( string $retval = '', array $args = array() )

Ugly preg_replace to hide the to front admin link

Description

Parameters

$retval

(string) (Optional)

Default value: ''

$args

(array) (Optional)

Default value: array()

Return

(string) $retval without the to-front link

Source

File: bp-forums/groups.php

	public function hide_super_sticky_admin_link( $retval = '', $args = array() ) {
		if ( strpos( $retval, '(' ) ) {
			$retval = preg_replace( '/(\(.+?)+(\))/i', '', $retval );
		}

		return $retval;
	}

Changelog

Changelog
Version Description
bbPress (r4810) 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.