wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
filter_block_core_template_part_attributes › WordPress Function
Od6.5.5
Przestarzałyn/a
› filter_block_core_template_part_attributes ( $attribute_value, $attribute_name, $allowed_html )
Parametry: (3) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Sanitizes the value of the Template Part block's `tagName` attribute.
Źródło
function filter_block_core_template_part_attributes( $attribute_value, $attribute_name, $allowed_html ) { if ( empty( $attribute_value ) || 'tagName' !== $attribute_name ) { return $attribute_value; } if ( ! is_array( $allowed_html ) ) { $allowed_html = wp_kses_allowed_html( $allowed_html ); } return isset( $allowed_html[ $attribute_value ] ) ? $attribute_value : ''; }