wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_kses_post › WordPress Function

Desde2.9.0
Obsoleton/a
wp_kses_post ( $data )
Parâmetros:
  • (string) $data Post content to filter.
    Required: Yes
Retorna:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Definido em:
Codex:

Sanitizes content for allowed HTML tags for post content.

Post content refers to the page contents of the 'post' type and not $_POST data from forms. This function expects unslashed data.


Fonte

function wp_kses_post( $data ) {
	return wp_kses( $data, 'post' );
}