wc_get_text_attributes()
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() wc get text attributes code WC 9.6.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' ); }