wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_kses_post › WordPress Function

Od2.9.0
Przestarzałyn/a
wp_kses_post ( $data )
Parametry:
  • (string) $data Post content to filter.
    Wymagane: Tak
Powrót:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Zdefiniowane na:
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.


Źródło

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