wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_filter_post_kses › WordPress Function

Seit2.0.0
Veraltetn/v
wp_filter_post_kses ( $data )
Parameter:
  • (string) $data Post content to filter, expected to be escaped with slashes.
    Erforderlich: Ja
Gibt zurück:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Definiert in:
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.


Quellcode

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