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

Glossary Term

filter_block_kses()

3 tags 1 category

filter_block_kses() — Filters and sanitizes a parsed block to remove non-allowable HTML from block attribute values.

Inputs: $block (WP_Block_Parser_Block): The parsed block object. $allowed_html (array[]|string): An array of allowed HTML elements and attributes, or a context name such as ‘post’. See 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 array: The filtered and sanitized block object result.

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…