bbp_show_lead_topic

  • apply_filters( 'bbp_show_lead_topic', (bool) $show_lead )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 227
       * - Traditional: Topics are included in the reply loop (default)
       * - New Style: Topics appear as "lead" posts, ahead of replies
       *
       * @since bbPress (r2954)
       *
       * @param $show_lead Optional. Default false
       * @return bool Yes if the topic appears as a lead, otherwise false
       */
      function bbp_show_lead_topic( $show_lead = false ) {
      	return apply_filters( 'bbp_show_lead_topic', (bool) $show_lead );
      }
      
      /**
       * Append 'view=all' to query string if it's already there from referer
       *
       * @since bbPress (r3325)
       *
       * @param string $original_link Original Link to be modified
       * @param bool $force Override bbp_get_view_all() check
       * @uses current_user_can() To check if the current user can moderate
      

Comments are closed.