bbp_get_view_all( $cap = 'moderate' )
If current user can and is vewing all topics/replies
Description
Return
(bool) Whether current user can and is viewing all
Source
File: bp-forums/common/functions.php
function bbp_get_view_all( $cap = 'moderate' ) { $retval = ( ( !empty( $_GET['view'] ) && ( 'all' === $_GET['view'] ) && current_user_can( $cap ) ) ); return apply_filters( 'bbp_get_view_all', (bool) $retval ); }
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.