filter_block_core_template_part_attributes
filter_block_core_template_part_attributes ( $attribute_value, $attribute_name, $allowed_html )
Parameters:- (string) attribute_value The attribute value to filter.
- (string) attribute_name The attribute name.
- (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.
Returns:- (string) The sanitized attribute value.
Defined at: - Introduced in WordPress: 6.5.5
- Deprecated in WordPress: —
Description
Sanitizes the value of the Template Part block's `tagName` attribute.