Glossary Term
filter_block_content()
filter_block_content() — Filters and sanitizes block content to remove non-allowable HTML from parsed block attribute values.
Inputs: $text (string): Text that may contain block content. $allowed_html (array[]|string): Optional. 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. Default ‘post’. $allowed_protocols (string[]): Optional. Array of allowed URL protocols. Defaults to the result of wp_allowed_protocols().
Returns string: The filtered and sanitized content 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…
