Switch language

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




wp_filter_post_kses [ WordPress Function ]

wp_filter_post_kses ( $data )
Parameters:
  • (string) $data Post content to filter, expected to be escaped with slashes
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_filter_post_kses($data) {
    global 
$allowedposttags;
    return 
addslashes wp_kses(stripslashes$data ), $allowedposttags) );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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