Summery Summery
Removes all KSES input form content filters.
Syntax Syntax
Description Description
A quick procedural method to removing all of the filters that KSES uses for content in WordPress Loop.
Does not remove the kses_init() function from ‘init’ hook (priority is default). Also does not remove kses_init() function from ‘set_current_user’ hook (priority is also default).
Source Source
File: wp-includes/kses.php
* @since 2.9.0
*
* @param string $data Post content to filter.
* @return string Filtered post content with allowed HTML tags and attributes intact.
*/
function wp_kses_post( $data ) {
return wp_kses( $data, 'post' );
}
/**
* Navigates through an array, object, or scalar, and sanitizes content for
* allowed HTML tags for post content.
*
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.6 | Introduced. |