bbp_suppress_private_forum_meta( string $retval, int $forum_id )
Replace forum meta details for users that cannot view them.
Description
Parameters
- $retval
-
(Required)
- $forum_id
-
(Required)
Return
(string)
Source
File: bp-forums/forums/template.php
1931 1932 1933 1934 1935 1936 | function bbp_suppress_private_forum_meta( $retval , $forum_id ) { if ( bbp_is_forum_private( $forum_id , false ) && !current_user_can( 'read_private_forums' ) ) $retval = '-' ; return apply_filters( 'bbp_suppress_private_forum_meta' , $retval ); } |
Changelog
Version | Description |
---|---|
bbPress (r3162) | 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.