Alert: 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 Description


Parameters Parameters

$retval

(Optional)

Default value: ''

$args

(Optional)

Default value: array()


Top ↑

Return Return

(string) $retval without the to-front link


Top ↑

Source Source

File: includes/extend/buddypress/groups.php

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

		return $retval;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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