bp_forums_allowed_tags

  • apply_filters( 'bp_forums_allowed_tags', $forums_allowedtags )

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 73
      	$forums_allowedtags['img']['alt'] = array();
      	$forums_allowedtags['img']['class'] = array();
      	$forums_allowedtags['img']['width'] = array();
      	$forums_allowedtags['img']['height'] = array();
      	$forums_allowedtags['img']['class'] = array();
      	$forums_allowedtags['img']['id'] = array();
      	$forums_allowedtags['code'] = array();
      	$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);
      

Comments are closed.