bbp_forum_get_sub_forums

  • apply_filters( 'bbp_forum_get_sub_forums', (array) $sub_forums, $args )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 615
      		'order'          => 'ASC'
      	);
      
      	$r = wp_parse_args( $args, $default );
      	$r['post_parent'] = bbp_get_forum_id( $r['post_parent'] );
      
      	// No forum passed
      	$sub_forums = !empty( $r['post_parent'] ) ? get_posts( $r ) : '';
      
      	return apply_filters( 'bbp_forum_get_sub_forums', (array) $sub_forums, $args );
      }
      
      /**
       * Output a list of forums (can be used to list subforums)
       *
       * @param mixed $args The function supports these args:
       *  - before: To put before the output. Defaults to '<ul class="bbp-forums">'
       *  - after: To put after the output. Defaults to '</ul>'
       *  - link_before: To put before every link. Defaults to '<li class="bbp-forum">'
       *  - link_after: To put after every link. Defaults to '</li>'
      

Comments are closed.