bbp_current_user_can_publish_topics

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

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 1180
      	// 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_topics' ) )
      		$retval = true;
      
      	// Allow access to be filtered
      	return apply_filters( 'bbp_current_user_can_publish_topics', (bool) $retval );
      }
      
      /**
       * Check if the current user can publish replies
       *
       * @since bbPress (r3127)
       *
       * @uses is_super_admin()
       * @uses is_user_logged_in()
       * @uses bbp_allow_anonymous()
      

Comments are closed.