bbp_get_view_all

  • apply_filters( 'bbp_get_view_all', (bool) $retval )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 285
       *
       * @uses current_user_can() To check if the current user can moderate
       * @uses apply_filters() Calls 'bbp_get_view_all' with the link and original link
       * @return bool Whether current user can and is viewing all
       */
      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 );
      }
      
      /**
       * Assist pagination by returning correct page number
       *
       * @since bbPress (r2628)
       *
       * @uses get_query_var() To get the 'paged' value
       * @return int Current page number
       */
      

Comments are closed.