bbp_include_all_forums

  • apply_filters( 'bbp_include_all_forums', $posts_query ) )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-functions.php :: Trac Source Line: 926
       * @uses bbp_exclude_forum_ids()
       * @uses bbp_get_topic_post_type()
       * @uses bbp_get_reply_post_type()
      
       * @return WP_Query
       */
      function bbp_pre_get_posts_exclude_forums( $posts_query ) {
      
      	// Bail if all forums are explicitly allowed
      	if ( true === apply_filters( 'bbp_include_all_forums', $posts_query ) )
      		return;
      
      	// Bail if $posts_query is not an object or of incorrect class
      	if ( !is_object( $posts_query ) || ( 'WP_Query' != get_class( $posts_query ) ) )
      		return;
      
      	// Bail if filters are suppressed on this query
      	if ( true == $posts_query->get( 'suppress_filters' ) )
      		return;
      

Comments are closed.