Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_kses_post [ WordPress Function ]

wp_kses_post ( $data )
Parameters:
  • (string) $data Post content to filter
Uses:
  • $allowedposttags
Returns:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
Defined at:



Sanitize 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.

Source


<?php
function wp_kses_post($data) {
    global 
$allowedposttags;
    return 
wp_kses$data $allowedposttags );
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

User discussions [ wordpress.org ]

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics