bp_forums_filter_tag_link

  • apply_filters( 'bp_forums_filter_tag_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/tag/' . $tag . '/' )

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 80
      	$forums_allowedtags['blockquote'] = array();
      
      	$forums_allowedtags = apply_filters( 'bp_forums_allowed_tags', $forums_allowedtags );
      	return wp_kses( $content, $forums_allowedtags );
      }
      
      function bp_forums_filter_tag_link( $link, $tag, $page, $context ) {
      	global $bp;
      
      	return apply_filters( 'bp_forums_filter_tag_link', bp_get_root_domain() . '/' . bp_get_forums_root_slug() . '/tag/' . $tag . '/' );
      }
      add_filter( 'bb_get_tag_link', 'bp_forums_filter_tag_link', 10, 4);
      
      function bp_forums_make_nofollow_filter( $text ) {
      	return preg_replace_callback( '|<a (.+?)>|i', 'bp_forums_make_nofollow_filter_callback', $text );
      }
      	function bp_forums_make_nofollow_filter_callback( $matches ) {
      		$text = $matches[1];
      		$text = str_replace( array( ' rel="nofollow"', " rel='nofollow'"), '', $text );
      		return "<a $text rel="nofollow">";
      

Comments are closed.