bbp_get_allowed_tags()
Display all of the allowed tags in HTML format with attributes.
Description Description
This is useful for displaying in the post area, which elements and attributes are supported. As well as any plugins which want to display it.
Return Return
(string) HTML allowed tags entity encoded.
Source Source
File: includes/common/template.php
function bbp_get_allowed_tags() { $allowed = ''; foreach ( (array) bbp_kses_allowed_tags() as $tag => $attributes ) { $allowed .= '<' . $tag; if ( 0 < count( $attributes ) ) { foreach ( array_keys( $attributes ) as $attribute ) { $allowed .= ' ' . $attribute . '=""'; } } $allowed .= '> '; } // Filter & return return apply_filters( 'bbp_get_allowed_tags', htmlentities( $allowed ) ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |