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



wp_filter_post_kses › WordPress Function

Od2.0.0
Przestarzałyn/a
wp_filter_post_kses ( $data )
Parametry:
  • (string) $data Post content to filter, expected to be escaped with slashes.
    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 slashed data.


Źródło

function wp_filter_post_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), 'post' ) );
}