wp_kses_allowed_html( string $context = '' ) Return a list of allowed tags and attributes for a given context. description 参数 $context (st…
function wp_kses_allowed_html( $context = '' ) { global $allowedposttags, $allowedtags, $allowedentitynames; if ( is_array( $context ) ) { // When `$context` is an array it's actually an array of allowed HTML elements and attributes. $html = $context; $context = 'explicit'; /...
Post content refers to the page contents of the'post'type and not$_POSTdata from forms. This function expects slashed data. Uses:wp_kses() No Hooks. Return String. Filtered post content with allowed HTML tags and attributes intact. Usage wp_filter_post_kses($data); $data(string) (require...