-
apply_filters( 'bbp_get_forum_permalink', get_permalink( $forum_id ) )
Source Reference:
-
* @param int $forum_id Optional. Forum id * @uses bbp_get_forum_id() To get the forum id * @uses get_permalink() Get the permalink of the forum * @uses apply_filters() Calls 'bbp_get_forum_permalink' with the forum * link * @return string Permanent link to forum */ function bbp_get_forum_permalink( $forum_id = 0 ) { $forum_id = bbp_get_forum_id( $forum_id ); return apply_filters( 'bbp_get_forum_permalink', get_permalink( $forum_id ) ); } /** * Output the title of the forum * * @since bbPress (r2464) * * @param int $forum_id Optional. Forum id * @uses bbp_get_forum_title() To get the forum title */
-
Hook: add_filter: bbp_get_forum_permalink instances (1)
-
add_filter( 'bbp_get_forum_permalink', 'bbp_add_view_all' )
Source Reference:
-
* the normal scope of feeds that WordPress would normally serve. To do this, * we filter every page request, listen for a feed request, and trap it. */ add_filter( 'request', 'bbp_request_feed_trap' ); // Links add_filter( 'paginate_links', 'bbp_add_view_all' ); add_filter( 'bbp_get_topic_permalink', 'bbp_add_view_all' ); add_filter( 'bbp_get_reply_permalink', 'bbp_add_view_all' ); add_filter( 'bbp_get_forum_permalink', 'bbp_add_view_all' ); // wp_filter_kses on new/edit topic/reply title add_filter( 'bbp_new_reply_pre_title', 'wp_filter_kses' ); add_filter( 'bbp_new_topic_pre_title', 'wp_filter_kses' ); add_filter( 'bbp_edit_reply_pre_title', 'wp_filter_kses' ); add_filter( 'bbp_edit_topic_pre_title', 'wp_filter_kses' ); // balanceTags, wp_filter_kses and wp_rel_nofollow on new/edit topic/reply text add_filter( 'bbp_new_reply_pre_content', 'balanceTags' ); add_filter( 'bbp_new_reply_pre_content', 'wp_rel_nofollow' );
-
// Forum else $retstr = sprintf( __( 'This forum contains %1$s and %2$s.', 'bbpress' ), $topic_count, $reply_count ); } // Add feeds $feed_links = ( !empty( $feed ) ) ? bbp_get_forum_topics_feed_link ( $forum_id ) . bbp_get_forum_replies_feed_link( $forum_id ) : ''; // Add the 'view all' filter back add_filter( 'bbp_get_forum_permalink', 'bbp_add_view_all' ); // Combine the elements together $retstr = $before . $retstr . $after; // Return filtered result return apply_filters( 'bbp_get_single_forum_description', $retstr, $args ); } /** Feeds *********************************************************************/
-