bbp_list_forums_subforum_classes

bbp_list_forums_subforum_classes

Hook Type: filter

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('bbp_list_forums_subforum_classes') is found 1 times:

  • /includes/forums/template.php line 772
    				: '';
    
    			// Subforum classes
    			$subforum_classes      = array( 'bbp-forum-link' );
    			$subforum_classes      = apply_filters( 'bbp_list_forums_subforum_classes', $subforum_classes, $sub_forum->ID );
    
    			// This could use bbp_get_forum_class() eventually...
    			$subforum_classes_attr = 'class="' . implode( ' ', array_map( 'sanitize_html_class', $subforum_classes ) ) . '"';
    
    			// Build this sub forums link
    			$links[] = $r['link_before'] . '<a href="' . esc_url( $permalink ) . '" ' . $subforum_classes_attr . '>' . $title . $counts . '</a>' . $r['link_after'];