bbp_current_user_can_publish_replies

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

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 1215
      	// Do not allow anonymous if not enabled
      	elseif ( !is_user_logged_in() && bbp_allow_anonymous() )
      		$retval = true;
      
      	// User is logged in
      	elseif ( bbp_is_user_active() && current_user_can( 'publish_replies' ) )
      		$retval = true;
      
      	// Allow access to be filtered
      	return apply_filters( 'bbp_current_user_can_publish_replies', (bool) $retval );
      }
      
      /** Forms *********************************************************************/
      
      /**
       *
       * @since bbPress (r3127)
       *
       * @uses bbp_get_forum_post_type()
       * @uses get_posts()
      

Comments are closed.