wc_get_text_attributes( string $raw_attributes )

Gets text attributes from a string.


Description Description


Parameters Parameters

$raw_attributes

(Required) Raw attributes.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/wc-attribute-functions.php

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' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.