wc_implode_html_attributes()
Implode and escape HTML attributes for output.
Хуков нет.
Возвращает
Строку
.
Использование
wc_implode_html_attributes( $raw_attributes );
- $raw_attributes(массив) (обязательный)
- Attribute name value pairs.
Список изменений
С версии 3.3.0 | Введена. |
Код wc_implode_html_attributes() wc implode html attributes WC 8.7.0
function wc_implode_html_attributes( $raw_attributes ) { $attributes = array(); foreach ( $raw_attributes as $name => $value ) { $attributes[] = esc_attr( $name ) . '="' . esc_attr( $value ) . '"'; } return implode( ' ', $attributes ); }