Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_kses()

3 tags 1 category

wp_kses() — Filters text content and strips out disallowed HTML. This function makes sure that only the allowed HTML element names, attribute names, attribute values, and HTML entities will occur in the given text string. This function expects unslashed data.

Inputs: $content (string): Text content to filter. $allowed_html (array[]|string): An array of allowed HTML elements and attributes, or a context name such as ‘post’. wp_kses_allowed_html() for the list of accepted context names. $allowed_protocols (string[]): Optional. Array of allowed URL protocols. Defaults to the result of wp_allowed_protocols().

Returns string: Filtered content containing only the allowed HTML.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…