wc_get_text_attributes()WC 2.4

Gets text attributes from a string.

No Hooks.

Return

Array.

Usage

wc_get_text_attributes( $raw_attributes );
$raw_attributes(string) (required)
Raw attributes.

Changelog

Since 2.4 Introduced.

wc_get_text_attributes() code WC 8.7.0

function wc_get_text_attributes( $raw_attributes ) {
	return array_filter( array_map( 'trim', explode( WC_DELIMITER, html_entity_decode( $raw_attributes, ENT_QUOTES, get_bloginfo( 'charset' ) ) ) ), 'wc_get_text_attributes_filter_callback' );
}