Core Function
View Source on Trac ↗ filter_block_core_template_part_attributes()
filter_block_core_template_part_attributes( mixed $attribute_value, mixed $attribute_name, mixed $allowed_html ) Sanitizes the value of the Template Part block's `tagName` attribute.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attribute_value string | The attribute value to filter. Required |
| $attribute_name string | The attribute name. Required |
| mixed | (array[] | string) $allowed_html 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. Required |
Return Value
(string)
The sanitized attribute value.
Function Information
Since Version
6.5.5
Source File
wp-includes/blocks.php
Advertisement