wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
allowed_tags › WordPress Function
Desde1.0.1
Obsoleton/a
› allowed_tags ( Sem parâmetros )
Retorna: |
|
Definido em: |
|
Codex: | |
Log de mudanças: |
|
Displays all of the allowed tags in HTML format with attributes.
This is useful for displaying in the comment area, which elements and attributes are supported. As well as any plugins which want to display it.Funções relacionadas: get_allowed_themes, add_allowed_options, wp_allowed_protocols, balancetags, get_allowed_http_origins
Fonte
function allowed_tags() { global $allowedtags; $allowed = ''; foreach ( (array) $allowedtags as $tag => $attributes ) { $allowed .= '<' . $tag; if ( 0 < count( $attributes ) ) { foreach ( $attributes as $attribute => $limits ) { $allowed .= ' ' . $attribute . '=""'; } } $allowed .= '> '; } return htmlentities( $allowed ); }