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()
Return Return
(string) $retval without the to-front link
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; }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |